dart:html
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
- 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
final
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- 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.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- abort() → void
- swapCache() → void
- update() → 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
- toString() → String
inherited
- Returns a string representation of this object.
Operators
- operator ==(dynamic other) → bool
inherited
- The equality operator. [...]
Static Properties
- supported → bool
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')