Dart SDK
dart:html
ApplicationCache
class
ApplicationCache
Constants
Static Properties
Properties
Methods
Constants
cachedEvent
checkingEvent
downloadingEvent
errorEvent
noUpdateEvent
obsoleteEvent
progressEvent
updateReadyEvent
CHECKING
DOWNLOADING
IDLE
OBSOLETE
UNCACHED
UPDATEREADY
Static properties
supported
Properties
status
onCached
onChecking
onDownloading
onError
onNoUpdate
onObsolete
onProgress
onUpdateReady
on
Methods
abort
swapCache
update
addEventListener
removeEventListener
dispatchEvent
ApplicationCache is accessed via
Window.applicationCache
.
Annotations
DocsEditable()
DomName('ApplicationCache')
SupportedBrowser(SupportedBrowser.CHROME)
SupportedBrowser(SupportedBrowser.FIREFOX)
SupportedBrowser(SupportedBrowser.IE, '10')
SupportedBrowser(SupportedBrowser.OPERA)
SupportedBrowser(SupportedBrowser.SAFARI)
Unstable()
Extends
Object
EventTarget
ApplicationCache
Constants
EventStreamProvider
<
Event
>
cachedEvent
=
const
EventStreamProvider
<
Event
>
('cached')
const
Static factory designed to expose cached events to event handlers that are not necessarily instances of
ApplicationCache
.
EventStreamProvider
<
Event
>
checkingEvent
=
const
EventStreamProvider
<
Event
>
('checking')
const
Static factory designed to expose checking events to event handlers that are not necessarily instances of
ApplicationCache
.
EventStreamProvider
<
Event
>
downloadingEvent
=
const
EventStreamProvider
<
Event
>
('downloading')
const
Static factory designed to expose downloading events to event handlers that are not necessarily instances of
ApplicationCache
.
EventStreamProvider
<
Event
>
errorEvent
=
const
EventStreamProvider
<
Event
>
('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of
ApplicationCache
.
EventStreamProvider
<
Event
>
noUpdateEvent
=
const
EventStreamProvider
<
Event
>
('noupdate')
const
Static factory designed to expose noupdate events to event handlers that are not necessarily instances of
ApplicationCache
.
EventStreamProvider
<
Event
>
obsoleteEvent
=
const
EventStreamProvider
<
Event
>
('obsolete')
const
Static factory designed to expose obsolete events to event handlers that are not necessarily instances of
ApplicationCache
.
EventStreamProvider
<
ProgressEvent
>
progressEvent
=
const
EventStreamProvider
<
ProgressEvent
>
('progress')
const
Static factory designed to expose progress events to event handlers that are not necessarily instances of
ApplicationCache
.
EventStreamProvider
<
Event
>
updateReadyEvent
=
const
EventStreamProvider
<
Event
>
('updateready')
const
Static factory designed to expose updateready events to event handlers that are not necessarily instances of
ApplicationCache
.
int
CHECKING
=
2
const
int
DOWNLOADING
=
3
const
int
IDLE
=
1
const
int
OBSOLETE
=
5
const
int
UNCACHED
=
0
const
int
UPDATEREADY
=
4
const
Static Properties
bool
supported
read-only
Checks if this type is supported on the current platform.
Properties
int
status
read-only
Stream
<
Event
>
onCached
read-only
Stream of cached events handled by this [ApplicationCache].
Stream
<
Event
>
onChecking
read-only
Stream of checking events handled by this [ApplicationCache].
Stream
<
Event
>
onDownloading
read-only
Stream of downloading events handled by this [ApplicationCache].
Stream
<
Event
>
onError
read-only
Stream of error events handled by this [ApplicationCache].
Stream
<
Event
>
onNoUpdate
read-only
Stream of noupdate events handled by this [ApplicationCache].
Stream
<
Event
>
onObsolete
read-only
Stream of obsolete events handled by this [ApplicationCache].
Stream
<
ProgressEvent
>
onProgress
read-only
Stream of progress events handled by this [ApplicationCache].
Stream
<
Event
>
onUpdateReady
read-only
Stream of updateready events handled by this [ApplicationCache].
Events
on
read-only ,
inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
Methods
abort
(
) →
void
swapCache
(
) →
void
update
(
) →
void
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited