ApplicationCache class
ApplicationCache is accessed via Window.applicationCache.
- Inheritance
- Object
- EventTarget
- ApplicationCache
- Annotations
- @DocsEditable()
- @DomName('ApplicationCache')
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.FIREFOX)
- @SupportedBrowser(SupportedBrowser.IE, '10')
- @SupportedBrowser(SupportedBrowser.OPERA)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Unstable()
- @Native("ApplicationCache,DOMApplicationCache,OfflineResourceList")
Properties
-
onCached
→ Stream<
Event> -
Stream of
cached
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.oncached'), read-only -
onChecking
→ Stream<
Event> -
Stream of
checking
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.onchecking'), read-only -
onDownloading
→ Stream<
Event> -
Stream of
downloading
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.ondownloading'), read-only -
onError
→ Stream<
Event> -
Stream of
error
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.onerror'), read-only -
onNoUpdate
→ Stream<
Event> -
Stream of
noupdate
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.onnoupdate'), read-only -
onObsolete
→ Stream<
Event> -
Stream of
obsolete
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.onobsolete'), read-only -
onProgress
→ Stream<
ProgressEvent> -
Stream of
progress
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.onprogress'), read-only -
onUpdateReady
→ Stream<
Event> -
Stream of
updateready
events handled by this ApplicationCache.@DocsEditable(), @DomName('ApplicationCache.onupdateready'), read-only - status → int
-
@DocsEditable(), @DomName('ApplicationCache.status'), final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- on → Events
-
This is an ease-of-use accessor for event streams which should only be
used when an explicit accessor is not available.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
abort(
) → void -
@DocsEditable(), @DomName('ApplicationCache.abort')
-
swapCache(
) → void -
@DocsEditable(), @DomName('ApplicationCache.swapCache')
-
update(
) → void -
@DocsEditable(), @DomName('ApplicationCache.update')
-
addEventListener(
String type, EventListener listener, [ bool useCapture ]) → void -
inherited
-
dispatchEvent(
Event event) → bool -
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void -
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Properties
Constants
-
cachedEvent
→ const EventStreamProvider<
Event> -
Static factory designed to expose
cached
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.cachedEvent')const EventStreamProvider<Event>('cached')
- CHECKING → const int
-
@DocsEditable(), @DomName('ApplicationCache.CHECKING')
2
-
checkingEvent
→ const EventStreamProvider<
Event> -
Static factory designed to expose
checking
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.checkingEvent')const EventStreamProvider<Event>('checking')
- DOWNLOADING → const int
-
@DocsEditable(), @DomName('ApplicationCache.DOWNLOADING')
3
-
downloadingEvent
→ const EventStreamProvider<
Event> -
Static factory designed to expose
downloading
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.downloadingEvent')const EventStreamProvider<Event>('downloading')
-
errorEvent
→ const EventStreamProvider<
Event> -
Static factory designed to expose
error
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.errorEvent')const EventStreamProvider<Event>('error')
- IDLE → const int
-
@DocsEditable(), @DomName('ApplicationCache.IDLE')
1
-
noUpdateEvent
→ const EventStreamProvider<
Event> -
Static factory designed to expose
noupdate
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.noupdateEvent')const EventStreamProvider<Event>('noupdate')
- OBSOLETE → const int
-
@DocsEditable(), @DomName('ApplicationCache.OBSOLETE')
5
-
obsoleteEvent
→ const EventStreamProvider<
Event> -
Static factory designed to expose
obsolete
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.obsoleteEvent')const EventStreamProvider<Event>('obsolete')
-
progressEvent
→ const EventStreamProvider<
ProgressEvent> -
Static factory designed to expose
progress
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.progressEvent')const EventStreamProvider<ProgressEvent>('progress')
- UNCACHED → const int
-
@DocsEditable(), @DomName('ApplicationCache.UNCACHED')
0
- UPDATEREADY → const int
-
@DocsEditable(), @DomName('ApplicationCache.UPDATEREADY')
4
-
updateReadyEvent
→ const EventStreamProvider<
Event> -
Static factory designed to expose
updateready
events to event handlers that are not necessarily instances ofApplicationCache
. [...]@DocsEditable(), @DomName('ApplicationCache.updatereadyEvent')const EventStreamProvider<Event>('updateready')