public abstract class

EmojiCompat.MetadataRepoLoaderCallback

extends java.lang.Object

 java.lang.Object

↳androidx.emoji2.text.EmojiCompat.MetadataRepoLoaderCallback

Overview

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

Summary

Constructors
publicMetadataRepoLoaderCallback()

Methods
public abstract voidonFailed(java.lang.Throwable throwable)

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

public abstract voidonLoaded(MetadataRepo metadataRepo)

Called by EmojiCompat.MetadataRepoLoader when metadata is loaded successfully.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public MetadataRepoLoaderCallback()

Methods

public abstract void onLoaded(MetadataRepo metadataRepo)

Called by EmojiCompat.MetadataRepoLoader when metadata is loaded successfully.

Parameters:

metadataRepo: MetadataRepo instance, cannot be null

public abstract void onFailed(java.lang.Throwable throwable)

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

Parameters:

throwable: the exception that caused the failure, nullable