ResourcesCompat.FontCallback
public
static
abstract
class
ResourcesCompat.FontCallback
extends Object
java.lang.Object | |
↳ | androidx.core.content.res.ResourcesCompat.FontCallback |
Interface used to receive asynchronous font fetching events.
Summary
Public constructors | |
---|---|
FontCallback()
|
Public methods | |
---|---|
abstract
void
|
onFontRetrievalFailed(int reason)
Called when an asynchronous font failed to load. |
abstract
void
|
onFontRetrieved(Typeface typeface)
Called when an asynchronous font was finished loading. |
Inherited methods | |
---|---|
Public constructors
FontCallback
public FontCallback ()
Public methods
onFontRetrievalFailed
public abstract void onFontRetrievalFailed (int reason)
Called when an asynchronous font failed to load.
onFontRetrieved
public abstract void onFontRetrieved (Typeface typeface)
Called when an asynchronous font was finished loading.
Parameters | |
---|---|
typeface |
Typeface : The font that was loaded.
|