ApplicationCache class
ApplicationCache is accessed via Window.applicationCache.
- Inheritance
- Object
- EventTarget
- ApplicationCache
- Annotations
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.FIREFOX)
- @SupportedBrowser(SupportedBrowser.IE, '10')
- @SupportedBrowser(SupportedBrowser.OPERA)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Unstable()
- @Native("ApplicationCache,DOMApplicationCache,OfflineResourceList")
Properties
- hashCode → int read-only, inherited
- The hash code for this object. [...]
- 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.
- onCached → Stream<
Event> read-only - Stream of
cached
events handled by this ApplicationCache. - onChecking → Stream<
Event> read-only - Stream of
checking
events handled by this ApplicationCache. - onDownloading → Stream<
Event> read-only - Stream of
downloading
events handled by this ApplicationCache. - onError → Stream<
Event> read-only - Stream of
error
events handled by this ApplicationCache. - onNoUpdate → Stream<
Event> read-only - Stream of
noupdate
events handled by this ApplicationCache. - onObsolete → Stream<
Event> read-only - Stream of
obsolete
events handled by this ApplicationCache. - onProgress → Stream<
ProgressEvent> read-only - Stream of
progress
events handled by this ApplicationCache. - onUpdateReady → Stream<
Event> read-only - Stream of
updateready
events handled by this ApplicationCache. - runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
- status → int? read-only
Methods
- abort(
) → void - addEventListener(
String type, EventListener? listener, [bool? useCapture]) → void inherited - dispatchEvent(
Event event) → bool 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 - swapCache(
) → void - toString(
) → String inherited - A string representation of this object. [...]
- update(
) → void
Operators
- operator ==(
Object other) → bool inherited - The equality operator. [...]
Static Properties
Constants
- cachedEvent → const EventStreamProvider<
Event> - Static factory designed to expose
cached
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('cached')
- CHECKING → const int
-
2
- checkingEvent → const EventStreamProvider<
Event> - Static factory designed to expose
checking
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('checking')
- DOWNLOADING → const int
-
3
- downloadingEvent → const EventStreamProvider<
Event> - Static factory designed to expose
downloading
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('downloading')
- errorEvent → const EventStreamProvider<
Event> - Static factory designed to expose
error
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('error')
- IDLE → const int
-
1
- noUpdateEvent → const EventStreamProvider<
Event> - Static factory designed to expose
noupdate
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('noupdate')
- OBSOLETE → const int
-
5
- obsoleteEvent → const EventStreamProvider<
Event> - Static factory designed to expose
obsolete
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('obsolete')
- progressEvent → const EventStreamProvider<
ProgressEvent> - Static factory designed to expose
progress
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<ProgressEvent>('progress')
- UNCACHED → const int
-
0
- UPDATEREADY → const int
-
4
- updateReadyEvent → const EventStreamProvider<
Event> - Static factory designed to expose
updateready
events to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('updateready')
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/ApplicationCache-class.html