InitCallback

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

Listener class for the initialization of the EmojiCompat.

Summary

Public constructors

Listener class for the initialization of the EmojiCompat.

Public methods
open Unit

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

open Unit
onFailed(@Nullable throwable: Throwable?)

Called when an unrecoverable error occurs during EmojiCompat initialization.

Public constructors

<init>

InitCallback()

Listener class for the initialization of the EmojiCompat.

Public methods

onInitialized

open fun onInitialized(): Unit

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.

onFailed

open fun onFailed(@Nullable throwable: Throwable?): Unit

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