FontCallback
abstract class FontCallback
kotlin.Any | |
↳ | androidx.core.content.res.ResourcesCompat.FontCallback |
Interface used to receive asynchronous font fetching events.
Summary
Public constructors | |
---|---|
<init>() Interface used to receive asynchronous font fetching events. |
Public methods | |
---|---|
abstract Unit |
onFontRetrievalFailed(reason: Int) 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
onFontRetrievalFailed
abstract fun onFontRetrievalFailed(reason: Int): Unit
Called when an asynchronous font failed to load.