FontCallback

abstract class FontCallback(source)

Interface used to receive asynchronous font fetching events.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Call onFontRetrievalFailed on the handler given, or the Ui Thread if it is null.
Link copied to clipboard
Call onFontRetrieved on the handler given, or the Ui Thread if it is null.
Link copied to clipboard
Link copied to clipboard
abstract fun onFontRetrievalFailed(reason: Int)
Called when an asynchronous font failed to load.
Link copied to clipboard
abstract fun onFontRetrieved(@NonNull typeface: Typeface)
Called when an asynchronous font was finished loading.