ApplicationCache class

ApplicationCache is accessed via Window.applicationCache.

Inheritance
Annotations
  • @DocsEditable()
  • @DomName('ApplicationCache')
  • @SupportedBrowser(SupportedBrowser.CHROME)
  • @SupportedBrowser(SupportedBrowser.FIREFOX)
  • @SupportedBrowser(SupportedBrowser.IE, '10')
  • @SupportedBrowser(SupportedBrowser.OPERA)
  • @SupportedBrowser(SupportedBrowser.SAFARI)
  • @Unstable()

Constants

cachedEventEventStreamProvider<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')
CHECKINGint
@DocsEditable(), @DomName('ApplicationCache.CHECKING')
2
checkingEventEventStreamProvider<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')
DOWNLOADINGint
@DocsEditable(), @DomName('ApplicationCache.DOWNLOADING')
3
downloadingEventEventStreamProvider<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')
errorEventEventStreamProvider<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')
IDLEint
@DocsEditable(), @DomName('ApplicationCache.IDLE')
1
noUpdateEventEventStreamProvider<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')
OBSOLETEint
@DocsEditable(), @DomName('ApplicationCache.OBSOLETE')
5
obsoleteEventEventStreamProvider<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')
progressEventEventStreamProvider<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')
UNCACHEDint
@DocsEditable(), @DomName('ApplicationCache.UNCACHED')
0
UPDATEREADYint
@DocsEditable(), @DomName('ApplicationCache.UPDATEREADY')
4
updateReadyEventEventStreamProvider<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

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only
supportedbool
read-only

Checks if this type is supported on the current platform.

Constructors

ApplicationCache.internal_()

Properties

onCachedStream<Event>
@DocsEditable(), @DomName('ApplicationCache.oncached'), read-only

Stream of cached events handled by this ApplicationCache.

onCheckingStream<Event>
@DocsEditable(), @DomName('ApplicationCache.onchecking'), read-only

Stream of checking events handled by this ApplicationCache.

onDownloadingStream<Event>
@DocsEditable(), @DomName('ApplicationCache.ondownloading'), read-only

Stream of downloading events handled by this ApplicationCache.

onErrorStream<Event>
@DocsEditable(), @DomName('ApplicationCache.onerror'), read-only

Stream of error events handled by this ApplicationCache.

onNoUpdateStream<Event>
@DocsEditable(), @DomName('ApplicationCache.onnoupdate'), read-only

Stream of noupdate events handled by this ApplicationCache.

onObsoleteStream<Event>
@DocsEditable(), @DomName('ApplicationCache.onobsolete'), read-only

Stream of obsolete events handled by this ApplicationCache.

onProgressStream<ProgressEvent>
@DocsEditable(), @DomName('ApplicationCache.onprogress'), read-only

Stream of progress events handled by this ApplicationCache.

onUpdateReadyStream<Event>
@DocsEditable(), @DomName('ApplicationCache.onupdateready'), read-only

Stream of updateready events handled by this ApplicationCache.

statusint
@DocsEditable(), @DomName('ApplicationCache.status'), read-only
hashCodeint
read-only, inherited
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.

runtimeTypeType
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