Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.emoji:emoji:1.0.0-rc01

EmojiCompat.MetadataRepoLoaderCallback

public static abstract class EmojiCompat.MetadataRepoLoaderCallback
extends Object

java.lang.Object
   ↳ androidx.emoji.text.EmojiCompat.MetadataRepoLoaderCallback


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

Summary

Public constructors

EmojiCompat.MetadataRepoLoaderCallback()

Public methods

abstract void onFailed(Throwable throwable)

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

abstract void onLoaded(MetadataRepo metadataRepo)

Called by EmojiCompat.MetadataRepoLoader when metadata is loaded successfully.

Inherited methods

Public constructors

EmojiCompat.MetadataRepoLoaderCallback

public EmojiCompat.MetadataRepoLoaderCallback ()

Public methods

onFailed

public abstract void onFailed (Throwable throwable)

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

Parameters
throwable Throwable: the exception that caused the failure, nullable

onLoaded

public abstract void onLoaded (MetadataRepo metadataRepo)

Called by EmojiCompat.MetadataRepoLoader when metadata is loaded successfully.

Parameters
metadataRepo MetadataRepo: MetadataRepo instance, cannot be null