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 |
|---|---|
static int |
CHECKING |
static int |
DOWNLOADING |
static int |
IDLE |
static 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 |
static int |
UNCACHED |
static 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 static final int CHECKING
public static final int DOWNLOADING
public static final int IDLE
public static final int OBSOLETE
public static final int UNCACHED
public static final 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()