Google 致力于为黑人社区推动种族平等。查看具体举措

EmojiCompat.InitCallback

public static abstract class EmojiCompat.InitCallback
extends Object

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


Listener class for the initialization of the EmojiCompat.

Summary

Public constructors

InitCallback()

Public methods

void onFailed(Throwable throwable)

Called when an unrecoverable error occurs during EmojiCompat initialization.

void onInitialized()

Called when EmojiCompat is initialized and the emoji data is loaded.

Inherited methods

Public constructors

InitCallback

public InitCallback ()

Public methods

onFailed

public void onFailed (Throwable throwable)

Called when an unrecoverable error occurs during EmojiCompat initialization. When used on devices running API 18 or below, this function is never called.

Parameters
throwable Throwable

onInitialized

public void onInitialized ()

Called when EmojiCompat is initialized and the emoji data is loaded. When used on devices running API 18 or below, this function is always called.