Package elemental2.dom
Class ApplicationCache
java.lang.Object
elemental2.dom.ApplicationCache
- All Implemented Interfaces:
EventTarget
@JsType(isNative=true,
namespace="<global>")
public class ApplicationCache
extends Object
implements EventTarget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from interface elemental2.dom.EventTarget
EventTarget.AddEventListenerListenerFn, EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerListenerFn, EventTarget.RemoveEventListenerOptionsUnionType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int@Nullable ApplicationCache.OncachedFn@Nullable ApplicationCache.OncheckingFn@Nullable ApplicationCache.OndownloadingFn@Nullable ApplicationCache.OnerrorFn@Nullable ApplicationCache.OnnoupdateFn@Nullable ApplicationCache.OnprogressFn@Nullable ApplicationCache.OnupdatereadyFnintstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(String type, EventListener listener) voidaddEventListener(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) booleandispatchEvent(Event evt) voidremoveEventListener(String type, EventListener listener) voidremoveEventListener(String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options) voidvoidupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface elemental2.dom.EventTarget
addEventListener, addEventListener, removeEventListener, removeEventListener
-
Field Details
-
CHECKING
@JsOverlay public static final int CHECKING -
DOWNLOADING
@JsOverlay public static final int DOWNLOADING -
IDLE
@JsOverlay public static final int IDLE -
OBSOLETE
@JsOverlay public static final int OBSOLETE -
UNCACHED
@JsOverlay public static final int UNCACHED -
UPDATEREADY
@JsOverlay public static final int UPDATEREADY -
oncached
-
onchecking
-
ondownloading
-
onerror
-
onnoupdate
-
onprogress
-
onupdateready
-
status
public int status
-
-
Constructor Details
-
ApplicationCache
public ApplicationCache()
-
-
Method Details
-
addEventListener
public void addEventListener(String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType options) - Specified by:
addEventListenerin interfaceEventTarget
-
addEventListener
- Specified by:
addEventListenerin interfaceEventTarget
-
dispatchEvent
- Specified by:
dispatchEventin interfaceEventTarget
-
removeEventListener
public void removeEventListener(String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options) - Specified by:
removeEventListenerin interfaceEventTarget
-
removeEventListener
- Specified by:
removeEventListenerin interfaceEventTarget
-
swapCache
public void swapCache() -
update
public void update()
-