ResourcesCompat.FontCallback

Added in 1.1.0

public abstract class ResourcesCompat.FontCallback


Interface used to receive asynchronous font fetching events.

Summary

Public constructors

Public methods

abstract void

Called when an asynchronous font failed to load.

abstract void

Called when an asynchronous font was finished loading.

Public constructors

FontCallback

Added in 1.1.0
public FontCallback()

Public methods

onFontRetrievalFailed

Added in 1.1.0
public abstract void onFontRetrievalFailed(int reason)

Called when an asynchronous font failed to load.

onFontRetrieved

Added in 1.1.0
public abstract void onFontRetrieved(@NonNull Typeface typeface)

Called when an asynchronous font was finished loading.

Parameters
@NonNull Typeface typeface

The font that was loaded.