# FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy

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/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#pubctors)\|[Methods](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#)  

# FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy

| 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


class
FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy
`  
`


``

extends `[FontRequestEmojiCompatConfig.RetryPolicy](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.RetryPolicy)`


``


`

|---|---|---------------------------------------------------------------------------------------|
| java.lang.Object                                                                            |||
| ↳ | [android.support.text.emoji.FontRequestEmojiCompatConfig.RetryPolicy](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.RetryPolicy) ||
|   | ↳ | android.support.text.emoji.FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy |

<br />

*** ** * ** ***

A retry policy implementation that doubles the amount of time in between retries. If downloading hasn't finish within given amount of time, this policy give up and the EmojiCompat will get into[LOAD_STATE_FAILED](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat#LOAD_STATE_FAILED)state.

## Summary

|                                                                                                                               ### Public constructors                                                                                                                               ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy(long))`(long totalMs) ` |

|                                                                                                      ### Public methods                                                                                                      ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` long` | ` `[getRetryDelay](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#getRetryDelay())`() ` Called each time the metadata loading fails. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#)From class` `[android.support.text.emoji.FontRequestEmojiCompatConfig.RetryPolicy](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.RetryPolicy)` ` |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract long` | ` `[getRetryDelay](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.RetryPolicy#getRetryDelay())`() ` Called each time the metadata loading fails. | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/text/emoji/FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy#)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

### FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy

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

```
FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy (long totalMs)
```

<br />

<br />

|                                Parameters                                 ||
|-----------|----------------------------------------------------------------|
| `totalMs` | `long`: A total amount of time to wait in milliseconds. <br /> |

## Public methods

### getRetryDelay

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

```
long getRetryDelay ()
```

Called each time the metadata loading fails. This is primarily due to a pending download of the font. If a value larger than zero is returned, metadata loader will retry after the given milliseconds.  
If`zero`is returned, metadata loader will retry immediately.  
If a value less than 0 is returned, the metadata loader will stop retrying and EmojiCompat will get into[LOAD_STATE_FAILED](https://developer.android.com/reference/android/support/text/emoji/EmojiCompat#LOAD_STATE_FAILED)state.

<br />

Note that the retry may happen earlier than you specified if the font provider notifies that the download is completed.

<br />

<br />

|                          Returns                          ||
|--------|---------------------------------------------------|
| `long` | long milliseconds to wait until next retry <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)