Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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
onFailed(@Nullable throwable: Throwable?)

Called when an unrecoverable error occurs during EmojiCompat initialization.

open Unit

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

Public constructors

<init>

InitCallback()

Listener class for the initialization of the EmojiCompat.

Public methods

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.

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.