FontCallback

abstract class FontCallback
kotlin.Any
   ↳ androidx.core.content.res.ResourcesCompat.FontCallback

Interface used to receive asynchronous font fetching events.

Summary

Public constructors

Interface used to receive asynchronous font fetching events.

Public methods

abstract Unit

Called when an asynchronous font failed to load.

abstract Unit
onFontRetrieved(@NonNull typeface: Typeface)

Called when an asynchronous font was finished loading.

Public constructors

<init>

FontCallback()

Interface used to receive asynchronous font fetching events.

Public methods

onFontRetrieved

abstract fun onFontRetrieved(@NonNull typeface: Typeface): Unit

Called when an asynchronous font was finished loading.

Parameters
typeface Typeface: The font that was loaded.