The Android Developer Challenge is back! Submit your idea before December 2.

ExponentialBackoffRetryPolicy

open class ExponentialBackoffRetryPolicy : FontRequestEmojiCompatConfig.RetryPolicy
kotlin.Any
   ↳ androidx.emoji.text.FontRequestEmojiCompatConfig.RetryPolicy
   ↳ androidx.emoji.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

<init>(totalMs: Long)

Public methods

open Long

Public constructors

<init>

ExponentialBackoffRetryPolicy(totalMs: Long)
Parameters
totalMs Long: A total amount of time to wait in milliseconds.

Public methods

getRetryDelay

open fun getRetryDelay(): Long