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.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, 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, wait
addEventListener, addEventListener, removeEventListener, removeEventListener
public 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 EventTarget
public void addEventListener(java.lang.String type, EventListener listener)
addEventListener
in interface EventTarget
public boolean dispatchEvent(Event evt)
dispatchEvent
in interface EventTarget
public void removeEventListener(java.lang.String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options)
removeEventListener
in interface EventTarget
public void removeEventListener(java.lang.String type, EventListener listener)
removeEventListener
in interface EventTarget
public void swapCache()
public void update()