FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy

public static class FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy
extends FontRequestEmojiCompatConfig.RetryPolicy

java.lang.Object
   ↳ androidx.emoji2.text.FontRequestEmojiCompatConfig.RetryPolicy
     ↳ androidx.emoji2.text.FontRequestEmojiCompatConfig.ExponentialBackoffRetryPolicy


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 EmojiCompat.LOAD_STATE_FAILED state.

Summary

Public constructors

ExponentialBackoffRetryPolicy(long totalMs)

Public methods

long getRetryDelay()

Called each time the metadata loading fails.

Inherited methods

Public constructors

ExponentialBackoffRetryPolicy

public ExponentialBackoffRetryPolicy (long totalMs)

Parameters
totalMs long: A total amount of time to wait in milliseconds.

Public methods

getRetry