ApplicationCache class

ApplicationCache is accessed via Window.applicationCache.

ApplicationCache is accessed via Window.applicationCache.

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

Constants

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

Static Properties

supported bool
read-only

Instance Properties

status int
read-only
onCached Stream<Event>
read-only
onChecking Stream<Event>
read-only
onDownloading Stream<Event>
read-only
onError Stream<Event>
read-only
onNoUpdate Stream<Event>
read-only
onObsolete Stream<Event>
read-only
onProgress Stream<ProgressEvent>
read-only
onUpdateReady Stream<Event>
read-only
on Events Inherited
read-only

Instance Methods

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