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
cachedevents handled by this ApplicationCache. - onChecking → Stream<
Event> read-only - Stream of
checkingevents handled by this ApplicationCache. - onDownloading → Stream<
Event> read-only - Stream of
downloadingevents handled by this ApplicationCache. - onError → Stream<
Event> read-only - Stream of
errorevents handled by this ApplicationCache. - onNoUpdate → Stream<
Event> read-only - Stream of
noupdateevents handled by this ApplicationCache. - onObsolete → Stream<
Event> read-only - Stream of
obsoleteevents handled by this ApplicationCache. - onProgress → Stream<
ProgressEvent> read-only - Stream of
progressevents handled by this ApplicationCache. - onUpdateReady → Stream<
Event> read-only - Stream of
updatereadyevents 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
cachedevents 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
checkingevents 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
downloadingevents to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('downloading') - errorEvent → const EventStreamProvider<
Event> - Static factory designed to expose
errorevents 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
noupdateevents 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
obsoleteevents to event handlers that are not necessarily instances of ApplicationCache. [...]const EventStreamProvider<Event>('obsolete') - progressEvent → const EventStreamProvider<
ProgressEvent> - Static factory designed to expose
progressevents 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
updatereadyevents 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