ResourcesCompat.FontCallback
public abstract class ResourcesCompat.FontCallback
Interface used to receive asynchronous font fetching events.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
abstract void |
onFontRetrievalFailed(int reason)Called when an asynchronous font failed to load. |
abstract void |
onFontRetrieved(@NonNull Typeface typeface)Called when an asynchronous font was finished loading. |
Public constructors
Public methods
onFontRetrievalFailed
Added in 1.1.0
public abstract void onFontRetrievalFailed(int reason)
Called when an asynchronous font failed to load.
| Parameters | |
|---|---|
int reason |
The reason the font failed to load. One of |