retryOrCancelStrategy

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.

Parameters

maxAttempts

Maximum number of attempts to load an image

delay

Period in milliseconds after which the download will be retried.