applyDefaultAndRetryStrategy
fun MindboxImageFailureHandler.Companion.applyDefaultAndRetryStrategy(maxAttempts: Int, delay: Long = 0, defaultImage: Bitmap? = null): MindboxImageFailureHandler
A strategy that will display a message with a defaultImage and make maxAttempts attempts to load the image at intervals of delay milliseconds. If successful, the image in the displayed message will be updated.
Parameters
maxAttempts
Maximum number of attempts to load an image
delay
Period in milliseconds after which the download will be retried.
defaultImage
Optional image