Class
ImageCache
ImageCache
Summary
Constructors
Properties
Constructors
constructor
new ImageCache(): ImageCache
Properties
maxRequests
placeholder
placeholder: ImageSource
downloadErrorEvent
Static
downloadedEvent
Static
Methods
_downloadCore
Private
_downloadCore(request: DownloadRequest): any
| Parameter | Default | Description |
request | |
Returns any
_onDownloadCompleted
Private
| Parameter | Default | Description |
key | | string |
image | | any |
Returns any
_onDownloadError
Private
| Parameter | Default | Description |
key | | string |
err | | Error |
Returns any
clear
disableDownload
enableDownload
enqueue
enqueue(request: DownloadRequest): any
| Parameter | Default | Description |
request | |
Returns any
get
| Parameter | Default | Description |
key | | string |
Returns any
on
on(eventNames: string, callback: (args: EventData) => void, thisArg?: any): any
| Parameter | Default | Description |
eventNames | | string |
callback | | (args: EventData) => void |
thisArg | | any |
Returns any
on(event: "downloaded", callback: (args: DownloadedData) => void, thisArg?: any): any
| Parameter | Default | Description |
event | | "downloaded" |
callback | | (args: DownloadedData) => void |
thisArg | | any |
Returns any
on(event: "downloadError", callback: (args: DownloadError) => void, thisArg?: any): any
| Parameter | Default | Description |
event | | "downloadError" |
callback | | (args: DownloadError) => void |
thisArg | | any |
Returns any
push
push(request: DownloadRequest): any
| Parameter | Default | Description |
request | |
Returns any
remove
| Parameter | Default | Description |
key | | string |
Returns void
set
| Parameter | Default | Description |
key | | string |
image | | any |
Returns void
- Previous
- ImageAsset
- Next
- ImageSource