NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view on GitHub
Search
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"ui/image-cache"
Cache
Class Cache
Globals
"ui/image-
cache"
Cache
constructor
_is
View
Base
max
Requests
placeholder
download
Error
Event
downloaded
Event
property
Change
Event
_create
Property
Change
Data
_download
Core
_emit
_on
Download
Completed
_on
Download
Error
add
Event
Listener
clear
disable
Download
enable
Download
enqueue
get
has
Listeners
notify
notify
Property
Change
off
on
once
push
remove
remove
Event
Listener
set
set
Property
Download
Error
Download
Request
Downloaded
Data
Hierarchy
Observable
Index
Constructors
constructor
Properties
_is
View
Base
max
Requests
placeholder
download
Error
Event
downloaded
Event
property
Change
Event
Methods
_create
Property
Change
Data
_download
Core
_emit
_on
Download
Completed
_on
Download
Error
add
Event
Listener
clear
disable
Download
enable
Download
enqueue
get
has
Listeners
notify
notify
Property
Change
off
on
once
push
remove
remove
Event
Listener
set
set
Property
Constructors
constructor
new
Cache
(
)
:
Cache
Returns
Cache
Properties
Private
_is
View
Base
_is
View
Base
:
boolean
max
Requests
max
Requests
:
number
placeholder
placeholder
:
ImageSource
Static
download
Error
Event
download
Error
Event
:
string
Static
downloaded
Event
downloaded
Event
:
string
Static
property
Change
Event
property
Change
Event
:
string
Methods
Private
_create
Property
Change
Data
_create
Property
Change
Data
(
name
:
string
, value
:
any
, oldValue
?:
any
)
:
PropertyChangeData
Parameters
name:
string
value:
any
Optional
oldValue:
any
Returns
PropertyChangeData
Private
_download
Core
_download
Core
(
request
:
DownloadRequest
)
:
any
Parameters
request:
DownloadRequest
Returns
any
Private
_emit
_emit
(
eventNames
:
string
)
:
any
Parameters
eventNames:
string
Returns
any
Private
_on
Download
Completed
_on
Download
Completed
(
key
:
string
, image
:
any
)
:
any
Parameters
key:
string
image:
any
Returns
any
Private
_on
Download
Error
_on
Download
Error
(
key
:
string
, err
:
Error
)
:
any
Parameters
key:
string
err:
Error
Returns
any
add
Event
Listener
add
Event
Listener
(
eventNames
:
string
, callback
:
function
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
any
clear
clear
(
)
:
void
Returns
void
disable
Download
disable
Download
(
)
:
void
Returns
void
enable
Download
enable
Download
(
)
:
void
Returns
void
enqueue
enqueue
(
request
:
DownloadRequest
)
:
any
Parameters
request:
DownloadRequest
Returns
any
get
get
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
has
Listeners
has
Listeners
(
eventName
:
string
)
:
boolean
Parameters
eventName:
string
Returns
boolean
notify
notify<T>
(
data
:
T
)
:
void
Type parameters
T
:
EventData
Parameters
data:
T
Returns
void
notify
Property
Change
notify
Property
Change
(
propertyName
:
string
, value
:
any
, oldValue
?:
any
)
:
void
Parameters
propertyName:
string
value:
any
Optional
oldValue:
any
Returns
void
off
off
(
eventNames
:
string
, callback
?:
any
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
any
on
on
(
eventNames
:
string
, callback
:
function
, thisArg
?:
any
)
:
any
on
(
event
:
"downloaded"
, callback
:
function
, thisArg
?:
any
)
:
any
on
(
event
:
"downloadError"
, callback
:
function
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
callback:
function
(
args
:
EventData
)
:
void
Parameters
args:
EventData
Returns
void
Optional
thisArg:
any
Returns
any
Parameters
event:
"downloaded"
callback:
function
(
args
:
DownloadedData
)
:
void
Parameters
args:
DownloadedData
Returns
void
Optional
thisArg:
any
Returns
any
Parameters
event:
"downloadError"
callback:
function
(
args
:
DownloadError
)
:
void
Parameters
args:
DownloadError
Returns
void
Optional
thisArg:
any
Returns
any
once
once
(
event
:
string
, callback
:
function
, thisArg
?:
any
)
:
any
Parameters
event:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
any
push
push
(
request
:
DownloadRequest
)
:
any
Parameters
request:
DownloadRequest
Returns
any
remove
remove
(
key
:
string
)
:
void
Parameters
key:
string
Returns
void
remove
Event
Listener
remove
Event
Listener
(
eventNames
:
string
, callback
?:
any
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
any
set
set
(
key
:
string
, image
:
any
)
:
void
Parameters
key:
string
image:
any
Returns
void
set
Property
set
Property
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method