Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

MetadataRepoLoaderCallback

abstract class MetadataRepoLoaderCallback
kotlin.Any
   ↳ androidx.emoji.text.EmojiCompat.MetadataRepoLoaderCallback

Callback to inform EmojiCompat about the state of the metadata load. Passed to MetadataRepoLoader during MetadataRepoLoader#load(MetadataRepoLoaderCallback) call.

Summary

Public constructors

Callback to inform EmojiCompat about the state of the metadata load.

Public methods
abstract Unit
onFailed(@Nullable throwable: Throwable?)

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

abstract Unit
onLoaded(@NonNull metadataRepo: MetadataRepo)

Called by MetadataRepoLoader when metadata is loaded successfully.

Public constructors

<init>

MetadataRepoLoaderCallback()

Callback to inform EmojiCompat about the state of the metadata load. Passed to MetadataRepoLoader during MetadataRepoLoader#load(MetadataRepoLoaderCallback) call.

Public methods

onFailed

abstract fun onFailed(@Nullable 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

abstract fun onLoaded(@NonNull metadataRepo: MetadataRepo): Unit

Called by MetadataRepoLoader when metadata is loaded successfully.

Parameters
metadataRepo MetadataRepo: MetadataRepo instance, cannot be null