Package-level declarations

Types

Link copied to clipboard
sealed class ImageRetryStrategy

Solution for failed image downloading

Link copied to clipboard

Interface for handling errors when loading an image

Link copied to clipboard

Interface for loading an image from a message

Functions

Link copied to clipboard

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.

Link copied to clipboard

The strategy applies the passed defaultImage if loading failed

Link copied to clipboard

Cancels the process, which means that the message will not be shown to the user if the image download fails

Link copied to clipboard

Default implementation of error handling on image loading

Default image loading implementation

Link copied to clipboard

A strategy where maxAttempts attempts will be made to load the image at delay millisecond intervals, and then if all attempts fail, the process will be canceled and the user will not see this message.

Link copied to clipboard

A strategy where maxAttempts attempts will be made to load an image at intervals of delay milliseconds, and then, if all attempts fail, a message with the defaultImage will be displayed to the user