EmojiCompat.MetadataRepoLoaderCallback

abstract class EmojiCompat.MetadataRepoLoaderCallback


Callback to inform EmojiCompat about the state of the metadata load. Passed to MetadataRepoLoader during load call.

Summary

Public constructors

Public functions

abstract Unit
onFailed(throwable: Throwable?)

Called by MetadataRepoLoader if an error occurs while loading the metadata.

abstract Unit
onLoaded(metadataRepo: MetadataRepo)

Called by MetadataRepoLoader when metadata is loaded successfully.

Public constructors

MetadataRepoLoaderCallback

Added in 1.0.0
MetadataRepoLoaderCallback()

Public functions

onFailed

Added in 1.0.0
abstract fun onFailed(throwable: Throwable?): Unit

Called by MetadataRepoLoader if an error occurs while loading the metadata.

Parameters
throwable: Throwable?

the exception that caused the failure, nullable

onLoaded

Added in 1.0.0
abstract fun onLoaded(metadataRepo: MetadataRepo): Unit

Called by MetadataRepoLoader when metadata is loaded successfully.

Parameters
metadataRepo: MetadataRepo

MetadataRepo instance, cannot be null