ResourcesCompat.FontCallback

Added in 1.1.0

abstract class ResourcesCompat.FontCallback


Interface used to receive asynchronous font fetching events.

Summary

Public constructors

Public functions

abstract Unit

Called when an asynchronous font failed to load.

abstract Unit

Called when an asynchronous font was finished loading.

Public constructors

FontCallback

Added in 1.1.0
FontCallback()

Public functions

onFontRetrievalFailed

Added in 1.1.0
abstract fun onFontRetrievalFailed(reason: Int): Unit

Called when an asynchronous font failed to load.

onFontRetrieved

Added in 1.1.0
abstract fun onFontRetrieved(typeface: Typeface): Unit

Called when an asynchronous font was finished loading.

Parameters
typeface: Typeface

The font that was loaded.