Skip to content

Most visited

Recently visited

added in version 26.1.0
belongs to Maven artifact


public static abstract class FontRequestEmojiCompatConfig.RetryPolicy
extends Object

Known Direct Subclasses

Retry policy used when the font provider is not ready to give the font file. To control the thread the retries are handled on, see setHandler(Handler).


Public constructors


Public methods

abstract long getRetryDelay()

Called each time the metadata loading fails.

Inherited methods

From class java.lang.Object

Public constructors


added in version 26.1.0
FontRequestEmojiCompatConfig.RetryPolicy ()

Public methods


added in version 26.1.0
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 state.

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

long long milliseconds to wait until next retry

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)