# EmojiCompat.InitCallback

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-emoji:28.0.0-alpha1  
Summary:[Ctors](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#pubctors)\|[Methods](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#)  

# EmojiCompat.InitCallback

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static

abstract
class
EmojiCompat.InitCallback
`  
`

extends Object


``


`

|---|-----------------------------------------------------|
| java.lang.Object                                       ||
| ↳ | android.support.text.emoji.EmojiCompat.InitCallback |

<br />

*** ** * ** ***

Listener class for the initialization of the EmojiCompat.

## Summary

|                                                                    ### Public constructors                                                                    ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[EmojiCompat.InitCallback](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#EmojiCompat.InitCallback())`() ` |

|                                                                                                                   ### Public methods                                                                                                                   ||
|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onFailed](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#onFailed(java.lang.Throwable))`(Throwable throwable) ` Called when an unrecoverable error occurs during EmojiCompat initialization. |
| ` void` | ` `[onInitialized](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#onInitialized())`() ` Called when EmojiCompat is initialized and the emoji data is loaded.                                     |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public constructors

### EmojiCompat.InitCallback

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
EmojiCompat.InitCallback ()
```

<br />

<br />

## Public methods

### onFailed

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
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.

<br />

|           Parameters            ||
|-------------|--------------------|
| `throwable` | `Throwable` <br /> |

### onInitialized

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
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.

<br />

-

  ## Interfaces

  - [EmojiCompat.MetadataRepoLoader](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.MetadataRepoLoader)
-

  ## Classes

  - [EmojiCompat](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat)
  - [EmojiCompat.Config](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.Config)
  - [EmojiCompat.InitCallback](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.InitCallback)
  - [EmojiCompat.MetadataRepoLoaderCallback](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat.MetadataRepoLoaderCallback)
  - [EmojiSpan](https://developer.android.com/reference/android/support/text/emoji/EmojiSpan)
  - [FontRequestEmojiCompatConfig](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig)
  - [FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy)
  - [FontRequestEmojiCompatConfig.RetryPolicy](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.RetryPolicy)
  - [MetadataRepo](https://developer.android.com/reference/android/support/text/emoji/MetadataRepo)
  - [R](https://developer.android.com/reference/android/support/text/emoji/R)
  - [R.attr](https://developer.android.com/reference/android/support/text/emoji/R.attr)
  - [R.bool](https://developer.android.com/reference/android/support/text/emoji/R.bool)
  - [R.color](https://developer.android.com/reference/android/support/text/emoji/R.color)
  - [R.dimen](https://developer.android.com/reference/android/support/text/emoji/R.dimen)
  - [R.drawable](https://developer.android.com/reference/android/support/text/emoji/R.drawable)
  - [R.id](https://developer.android.com/reference/android/support/text/emoji/R.id)
  - [R.integer](https://developer.android.com/reference/android/support/text/emoji/R.integer)
  - [R.layout](https://developer.android.com/reference/android/support/text/emoji/R.layout)
  - [R.string](https://developer.android.com/reference/android/support/text/emoji/R.string)
  - [R.style](https://developer.android.com/reference/android/support/text/emoji/R.style)
  - [R.styleable](https://developer.android.com/reference/android/support/text/emoji/R.styleable)