ApplicationCache is accessed via Window.applicationCache.

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

Constants

EventStreamProvider<Event> cachedEvent = const EventStreamProvider<Event>('cached')
const
Static factory designed to expose cached events to event handlers that are not necessarily instances of ApplicationCache.
int CHECKING = 2
const
EventStreamProvider<Event> checkingEvent = const EventStreamProvider<Event>('checking')
const
Static factory designed to expose checking events to event handlers that are not necessarily instances of ApplicationCache.
int DOWNLOADING = 3
const
EventStreamProvider<Event> downloadingEvent = const EventStreamProvider<Event>('downloading')
const
Static factory designed to expose downloading events to event handlers that are not necessarily instances of ApplicationCache.
EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of ApplicationCache.
int IDLE = 1
const
EventStreamProvider<Event> noUpdateEvent = const EventStreamProvider<Event>('noupdate')
const
Static factory designed to expose noupdate events to event handlers that are not necessarily instances of ApplicationCache.
int OBSOLETE = 5
const
EventStreamProvider<Event> obsoleteEvent = const EventStreamProvider<Event>('obsolete')
const
Static factory designed to expose obsolete events to event handlers that are not necessarily instances of ApplicationCache.
EventStreamProvider<ProgressEvent> progressEvent = const EventStreamProvider<ProgressEvent>('progress')
const
Static factory designed to expose progress events to event handlers that are not necessarily instances of ApplicationCache.
int UNCACHED = 0
const
int UPDATEREADY = 4
const
EventStreamProvider<Event> updateReadyEvent = const EventStreamProvider<Event>('updateready')
const
Static factory designed to expose updateready events to event handlers that are not necessarily instances of ApplicationCache.

Static Properties

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

Properties

Events on
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.
Stream<Event> onCached
read-only
Stream of cached events handled by this ApplicationCache.
Stream<Event> onChecking
read-only
Stream of checking events handled by this ApplicationCache.
Stream<Event> onDownloading
read-only
Stream of downloading events handled by this ApplicationCache.
Stream<Event> onError
read-only
Stream of error events handled by this ApplicationCache.
Stream<Event> onNoUpdate
read-only
Stream of noupdate events handled by this ApplicationCache.
Stream<Event> onObsolete
read-only
Stream of obsolete events handled by this ApplicationCache.
Stream<ProgressEvent> onProgress
read-only
Stream of progress events handled by this ApplicationCache.
Stream<Event> onUpdateReady
read-only
Stream of updateready events handled by this ApplicationCache.
int status
read-only

Methods

abort() → void
addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
dispatchEvent(Event event) → bool
inherited
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
swapCache() → void
update() → void