public class ApplicationCache extends java.lang.Object implements EventTarget
| Modifier and Type | Class and Description |
|---|---|
static interface |
ApplicationCache.OncachedFn |
static interface |
ApplicationCache.OncheckingFn |
static interface |
ApplicationCache.OndownloadingFn |
static interface |
ApplicationCache.OnerrorFn |
static interface |
ApplicationCache.OnnoupdateFn |
static interface |
ApplicationCache.OnprogressFn |
static interface |
ApplicationCache.OnupdatereadyFn |
EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerOptionsUnionType| Modifier and Type | Field and Description |
|---|---|
int |
CHECKING |
int |
DOWNLOADING |
int |
IDLE |
int |
OBSOLETE |
ApplicationCache.OncachedFn |
oncached |
ApplicationCache.OncheckingFn |
onchecking |
ApplicationCache.OndownloadingFn |
ondownloading |
ApplicationCache.OnerrorFn |
onerror |
ApplicationCache.OnnoupdateFn |
onnoupdate |
ApplicationCache.OnprogressFn |
onprogress |
ApplicationCache.OnupdatereadyFn |
onupdateready |
int |
status |
int |
UNCACHED |
int |
UPDATEREADY |
| Constructor and Description |
|---|
ApplicationCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(java.lang.String type,
EventListener listener) |
void |
addEventListener(java.lang.String type,
EventListener listener,
EventTarget.AddEventListenerOptionsUnionType options) |
boolean |
dispatchEvent(Event evt) |
void |
removeEventListener(java.lang.String type,
EventListener listener) |
void |
removeEventListener(java.lang.String type,
EventListener listener,
EventTarget.RemoveEventListenerOptionsUnionType options) |
void |
swapCache() |
void |
update() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddEventListener, addEventListener, removeEventListener, removeEventListenerpublic int CHECKING
public int DOWNLOADING
public int IDLE
public int OBSOLETE
public int UNCACHED
public int UPDATEREADY
public ApplicationCache.OncachedFn oncached
public ApplicationCache.OncheckingFn onchecking
public ApplicationCache.OndownloadingFn ondownloading
public ApplicationCache.OnerrorFn onerror
public ApplicationCache.OnnoupdateFn onnoupdate
public ApplicationCache.OnprogressFn onprogress
public ApplicationCache.OnupdatereadyFn onupdateready
public int status
public void addEventListener(java.lang.String type,
EventListener listener,
EventTarget.AddEventListenerOptionsUnionType options)
addEventListener in interface EventTargetpublic void addEventListener(java.lang.String type,
EventListener listener)
addEventListener in interface EventTargetpublic boolean dispatchEvent(Event evt)
dispatchEvent in interface EventTargetpublic void removeEventListener(java.lang.String type,
EventListener listener,
EventTarget.RemoveEventListenerOptionsUnionType options)
removeEventListener in interface EventTargetpublic void removeEventListener(java.lang.String type,
EventListener listener)
removeEventListener in interface EventTargetpublic void swapCache()
public void update()