LoadedCachedImage <T>
Hierarchy
- CachedImage<T>
- LoadedCachedImage
Index
Properties
data
The decoded payload; null until decoding completes.
inheritedlastUsed
inheritedstate
inheritedurl
Accessors
inheritedcomplete
Returns boolean
inheritedheight
Get the image's height
Returns number
inheritedwidth
Get the image's width
Returns number
Methods
inherited_load
Load the cached image if it's not already available.
Reports its outcome through the state, and never rejects.
Parameters
errCause: Error = undefined
An error object the be attached as cause for failed fetch responses. Used primarily for extending the traceback
Returns Promise<void>
inheritedisAsset
Is the image an asset image?
Returns boolean
inheritedisDoneLoading
Is the image loading complete (either succesfully or not)?
Returns boolean
inheritedisFailing
Is the image experiencing problems loading?
Returns boolean
inheritedisLoaded
Is the image loaded and ready?
When this is true,
datais available.Returns this is LoadedCachedImage<T>
inheritedisLoading
Is the image currently being loaded?
Returns boolean
inheritedunload
Unload the image from the cache
Returns void
A cached image whose data is guaranteed to be available.