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

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

supported bool
read-only

Checks if this type is supported on the current platform.

Properties

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.

status int
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