Package-level declarations
Types
Solution for failed image downloading
Interface for handling errors when loading an image
Interface for loading an image from a message
Functions
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.
The strategy applies the passed defaultImage if loading failed
Cancels the process, which means that the message will not be shown to the user if the image download fails
Default implementation of error handling on image loading
Default image loading implementation
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.
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