belongs to Maven artifact androidx.core:core:1.0.0-alpha1

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

ResourcesCompat.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

ResourcesCompat.FontCallback

ResourcesCompat.FontCallback ()

Public methods

onFontRetrieved

void onFontRetrieved (Typeface typeface)

Called when an asynchronous font was finished loading.

Parameters
typeface Typeface: The font that was loaded.