EmojiCompat.MetadataRepoLoaderCallback

public 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 methods

abstract void

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

abstract void
onLoaded(@NonNull MetadataRepo metadataRepo)

Called by MetadataRepoLoader when metadata is loaded successfully.

Public constructors

MetadataRepoLoaderCallback

Added in 1.0.0
public MetadataRepoLoaderCallback()

Public methods

onFailed

Added in 1.0.0
public abstract void onFailed(@Nullable Throwable throwable)

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

Parameters
@Nullable Throwable throwable

the exception that caused the failure, nullable

onLoaded

Added in 1.0.0
public abstract void onLoaded(@NonNull MetadataRepo metadataRepo)

Called by MetadataRepoLoader when metadata is loaded successfully.

Parameters
@NonNull MetadataRepo metadataRepo

MetadataRepo instance, cannot be null