mixinafReflux::Images
afReflux::Images
(Service) - Maintains a cache of Images, ensuring they are disposed of properly.
- contains
abstract Bool contains(Uri uri)Returns true if an image is mapped to the given URI.
- disposeAll
abstract Void disposeAll()Disposes of all the images. This is called on registry shutdown. The
AppModuleconfig key isafReflux.disposeOfImages.- get
@Operator
abstract Image? get(Uri uri, Bool checked := true)Returns the image at the given URI, storing it in the cache.
- getFaded
abstract Image? getFaded(Uri uri, Bool checked := true)Returns (and caches) a faded version of the image at the given URI. Useful for generating disabled icons.
- load
abstract Image? load(Uri uri, Bool checked := true)Returns (and caches) the image at the given URI ensuring that it is fully loaded and that its
size()is available.- set
@Operator
abstract Void set(Uri uri, Image image)Stashes the image under the given URI. If another image existed under the same URI, it is disposed of.