NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in

Defined in: ui/image-cache/index.d.ts:7

Represents a single download request.

Properties ​

completed? ​

ts
optional completed?: (image: any, key: string) => void;

Defined in: ui/image-cache/index.d.ts:19

An optional function to be called when the download is complete.

Parameters ​

ParameterType
imageany
keystring

Returns ​

void


error? ​

ts
optional error?: (key: string) => void;

Defined in: ui/image-cache/index.d.ts:23

An optional function to be called if the download errors.

Parameters ​

ParameterType
keystring

Returns ​

void


key ​

ts
key: string;

Defined in: ui/image-cache/index.d.ts:15

The key used to cache the image.


url ​

ts
url: string;

Defined in: ui/image-cache/index.d.ts:11

The url of the image.