lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 26.1.0
belongs to Maven artifact com.android.support:support-emoji:28.0.0-alpha1

FontRequestEmojiCompatConfig.RetryPolicy

public static abstract class FontRequestEmojiCompatConfig.RetryPolicy
extends Object

java.lang.Object
   ↳ android.support.text.emoji.FontRequestEmojiCompatConfig.RetryPolicy
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).

Summary

Public constructors

FontRequestEmojiCompatConfig.RetryPolicy()

Public methods

abstract long getRetryDelay()

Called each time the metadata loading fails.

Inherited methods

From class java.lang.Object

Public constructors

FontRequestEmojiCompatConfig.RetryPolicy

added in version 26.1.0
FontRequestEmojiCompatConfig.RetryPolicy ()

Public methods

getRetryDelay

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.

Returns
long long milliseconds to wait until next retry