public interface WorkerGlobalScope extends EventTarget
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WorkerGlobalScope.FetchInputUnionType |
static interface |
WorkerGlobalScope.OnerrorCallbackFn |
static interface |
WorkerGlobalScope.OnofflineCallbackFn |
static interface |
WorkerGlobalScope.OnonlineCallbackFn |
EventTarget.AddEventListenerOptionsUnionType, EventTarget.RemoveEventListenerOptionsUnionType| Modifier and Type | Method and Description |
|---|---|
void |
close() |
default <any> |
fetch(Request input) |
default <any> |
fetch(Request input,
RequestInit init) |
default <any> |
fetch(java.lang.String input) |
default <any> |
fetch(java.lang.String input,
RequestInit init) |
<any> |
fetch(WorkerGlobalScope.FetchInputUnionType input) |
<any> |
fetch(WorkerGlobalScope.FetchInputUnionType input,
RequestInit init) |
WorkerLocation |
getLocation() |
WorkerGlobalScope.OnerrorCallbackFn |
getOnerror() |
WorkerGlobalScope.OnofflineCallbackFn |
getOnoffline() |
WorkerGlobalScope.OnonlineCallbackFn |
getOnonline() |
WorkerGlobalScope |
getSelf() |
void |
setLocation(WorkerLocation location) |
void |
setOnerror(WorkerGlobalScope.OnerrorCallbackFn onerror) |
void |
setOnoffline(WorkerGlobalScope.OnofflineCallbackFn onoffline) |
void |
setOnonline(WorkerGlobalScope.OnonlineCallbackFn ononline) |
void |
setSelf(WorkerGlobalScope self) |
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListener, removeEventListenervoid close()
<any> fetch(WorkerGlobalScope.FetchInputUnionType input, RequestInit init)
<any> fetch(WorkerGlobalScope.FetchInputUnionType input)
default <any> fetch(Request input, RequestInit init)
default <any> fetch(Request input)
default <any> fetch(java.lang.String input,
RequestInit init)
default <any> fetch(java.lang.String input)
WorkerLocation getLocation()
WorkerGlobalScope.OnerrorCallbackFn getOnerror()
WorkerGlobalScope.OnofflineCallbackFn getOnoffline()
WorkerGlobalScope.OnonlineCallbackFn getOnonline()
WorkerGlobalScope getSelf()
void setLocation(WorkerLocation location)
void setOnerror(WorkerGlobalScope.OnerrorCallbackFn onerror)
void setOnoffline(WorkerGlobalScope.OnofflineCallbackFn onoffline)
void setOnonline(WorkerGlobalScope.OnonlineCallbackFn ononline)
void setSelf(WorkerGlobalScope self)