ApplicationCache class
ApplicationCache is accessed via Window.applicationCache.
- Inheritance
- Object
- JSObject
- DartHtmlDomObject
- EventTarget
- ApplicationCache
- Annotations
- @DocsEditable()
- @DomName('ApplicationCache')
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.FIREFOX)
- @SupportedBrowser(SupportedBrowser.IE, '10')
- @SupportedBrowser(SupportedBrowser.OPERA)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Unstable()
Constants
- cachedEvent → EventStreamProvider<Event> @DocsEditable(), @DomName('ApplicationCache.cachedEvent')
-
Static factory designed to expose
cached
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<Event>
('cached') - CHECKING → int @DocsEditable(), @DomName('ApplicationCache.CHECKING')
-
2
- checkingEvent → EventStreamProvider<Event> @DocsEditable(), @DomName('ApplicationCache.checkingEvent')
-
Static factory designed to expose
checking
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<Event>
('checking') - DOWNLOADING → int @DocsEditable(), @DomName('ApplicationCache.DOWNLOADING')
-
3
- downloadingEvent → EventStreamProvider<Event> @DocsEditable(), @DomName('ApplicationCache.downloadingEvent')
-
Static factory designed to expose
downloading
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<Event>
('downloading') - errorEvent → EventStreamProvider<Event> @DocsEditable(), @DomName('ApplicationCache.errorEvent')
-
Static factory designed to expose
error
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<Event>
('error') - IDLE → int @DocsEditable(), @DomName('ApplicationCache.IDLE')
-
1
- noUpdateEvent → EventStreamProvider<Event> @DocsEditable(), @DomName('ApplicationCache.noupdateEvent')
-
Static factory designed to expose
noupdate
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<Event>
('noupdate') - OBSOLETE → int @DocsEditable(), @DomName('ApplicationCache.OBSOLETE')
-
5
- obsoleteEvent → EventStreamProvider<Event> @DocsEditable(), @DomName('ApplicationCache.obsoleteEvent')
-
Static factory designed to expose
obsolete
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<Event>
('obsolete') - progressEvent → EventStreamProvider<ProgressEvent> @DocsEditable(), @DomName('ApplicationCache.progressEvent')
-
Static factory designed to expose
progress
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<ProgressEvent>
('progress') - UNCACHED → int @DocsEditable(), @DomName('ApplicationCache.UNCACHED')
-
0
- UPDATEREADY → int @DocsEditable(), @DomName('ApplicationCache.UPDATEREADY')
-
4
- updateReadyEvent → EventStreamProvider<Event> @DocsEditable(), @DomName('ApplicationCache.updatereadyEvent')
-
Static factory designed to expose
updateready
events to event handlers that are not necessarily instances of ApplicationCache.const EventStreamProvider<Event>
('updateready')
Static Properties
- instanceRuntimeType → Type @Deprecated("Internal Use Only"), read-only
- supported → bool read-only
-
Checks if this type is supported on the current platform.
Constructors
Properties
- onCached → Stream<Event> @DocsEditable(), @DomName('ApplicationCache.oncached'), read-only
-
Stream of
cached
events handled by thisApplicationCache
. - onChecking → Stream<Event> @DocsEditable(), @DomName('ApplicationCache.onchecking'), read-only
-
Stream of
checking
events handled by thisApplicationCache
. - onDownloading → Stream<Event> @DocsEditable(), @DomName('ApplicationCache.ondownloading'), read-only
-
Stream of
downloading
events handled by thisApplicationCache
. - onError → Stream<Event> @DocsEditable(), @DomName('ApplicationCache.onerror'), read-only
-
Stream of
error
events handled by thisApplicationCache
. - onNoUpdate → Stream<Event> @DocsEditable(), @DomName('ApplicationCache.onnoupdate'), read-only
-
Stream of
noupdate
events handled by thisApplicationCache
. - onObsolete → Stream<Event> @DocsEditable(), @DomName('ApplicationCache.onobsolete'), read-only
-
Stream of
obsolete
events handled by thisApplicationCache
. - onProgress → Stream<ProgressEvent> @DocsEditable(), @DomName('ApplicationCache.onprogress'), read-only
-
Stream of
progress
events handled by thisApplicationCache
. - onUpdateReady → Stream<Event> @DocsEditable(), @DomName('ApplicationCache.onupdateready'), read-only
-
Stream of
updateready
events handled by thisApplicationCache
. - status → int @DocsEditable(), @DomName('ApplicationCache.status'), read-only
- hashCode → int read-only, inherited
- on → Events 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.
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
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 inherited -
Invoked when a non-existent method or property is accessed.
- removeEventListener(
String type, EventListener listener, [ bool useCapture ]) → void inherited - toString(
) → String inherited -
Returns the result of the JavaScript objects
toString
method.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/ApplicationCache-class.html