ApplicationCache class

ApplicationCache is accessed via Window.applicationCache.

Inheritance
Annotations
  • @SupportedBrowser(SupportedBrowser.CHROME)
  • @SupportedBrowser(SupportedBrowser.FIREFOX)
  • @SupportedBrowser(SupportedBrowser.IE, '10')
  • @SupportedBrowser(SupportedBrowser.OPERA)
  • @SupportedBrowser(SupportedBrowser.SAFARI)
  • @Unstable()
  • @Native("ApplicationCache,DOMApplicationCache,OfflineResourceList")

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
onEvents
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.
onCachedStream<Event>
read-only
Stream of cached events handled by this ApplicationCache.
onCheckingStream<Event>
read-only
Stream of checking events handled by this ApplicationCache.
onDownloadingStream<Event>
read-only
Stream of downloading events handled by this ApplicationCache.
onErrorStream<Event>
read-only
Stream of error events handled by this ApplicationCache.
onNoUpdateStream<Event>
read-only
Stream of noupdate events handled by this ApplicationCache.
onObsoleteStream<Event>
read-only
Stream of obsolete events handled by this ApplicationCache.
onProgressStream<ProgressEvent>
read-only
Stream of progress events handled by this ApplicationCache.
onUpdateReadyStream<Event>
read-only
Stream of updateready events handled by this ApplicationCache.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
statusint?
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

supportedbool
read-only
Checks if this type is supported on the current platform.

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