Package org.w3c.workers
Kotlin JavaScript wrappers for the Web Workers API.
Types
CacheBatchOperation
interface CacheBatchOperation
CacheQueryOptions
interface CacheQueryOptions
CacheStorage
Exposes the JavaScript CacheStorage to Kotlin
abstract class CacheStorage
Client
Exposes the JavaScript Client to Kotlin
abstract class Client :
UnionClientOrMessagePortOrServiceWorker
ClientQueryOptions
interface ClientQueryOptions
ClientType
interface ClientType
ExtendableEvent
Exposes the JavaScript ExtendableEvent to Kotlin
open class ExtendableEvent : Event
ExtendableEventInit
interface ExtendableEventInit : EventInit
ExtendableMessageEvent
Exposes the JavaScript ExtendableMessageEvent to Kotlin
open class ExtendableMessageEvent : ExtendableEvent
ExtendableMessageEventInit
interface ExtendableMessageEventInit : ExtendableEventInit
FetchEvent
Exposes the JavaScript FetchEvent to Kotlin
open class FetchEvent : ExtendableEvent
FetchEventInit
interface FetchEventInit : ExtendableEventInit
ForeignFetchEvent
open class ForeignFetchEvent : ExtendableEvent
ForeignFetchEventInit
interface ForeignFetchEventInit : ExtendableEventInit
ForeignFetchOptions
interface ForeignFetchOptions
ForeignFetchResponse
interface ForeignFetchResponse
FrameType
interface FrameType
FunctionalEvent
open class FunctionalEvent : ExtendableEvent
InstallEvent
Exposes the JavaScript InstallEvent to Kotlin
open class InstallEvent : ExtendableEvent
RegistrationOptions
interface RegistrationOptions
ServiceWorker
Exposes the JavaScript ServiceWorker to Kotlin
abstract class ServiceWorker :
EventTarget,
AbstractWorker,
UnionMessagePortOrServiceWorker,
UnionClientOrMessagePortOrServiceWorker
ServiceWorkerContainer
Exposes the JavaScript ServiceWorkerContainer to Kotlin
abstract class ServiceWorkerContainer : EventTarget
ServiceWorkerGlobalScope
Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin
abstract class ServiceWorkerGlobalScope : WorkerGlobalScope
ServiceWorkerMessageEvent
Exposes the JavaScript ServiceWorkerMessageEvent to Kotlin
open class ServiceWorkerMessageEvent : Event
ServiceWorkerMessageEventInit
interface ServiceWorkerMessageEventInit : EventInit
ServiceWorkerRegistration
Exposes the JavaScript ServiceWorkerRegistration to Kotlin
abstract class ServiceWorkerRegistration : EventTarget
ServiceWorkerState
interface ServiceWorkerState
UnionClientOrMessagePortOrServiceWorker
interface UnionClientOrMessagePortOrServiceWorker
UnionMessagePortOrServiceWorker
interface UnionMessagePortOrServiceWorker
WindowClient
Exposes the JavaScript WindowClient to Kotlin
abstract class WindowClient : Client
Functions
CacheBatchOperation
fun CacheBatchOperation(
type: String? = undefined,
request: Request? = undefined,
response: Response? = undefined,
options: CacheQueryOptions? = undefined
): CacheBatchOperation
CacheQueryOptions
fun CacheQueryOptions(
ignoreSearch: Boolean? = false,
ignoreMethod: Boolean? = false,
ignoreVary: Boolean? = false,
cacheName: String? = undefined
): CacheQueryOptions
ClientQueryOptions
fun ClientQueryOptions(
includeUncontrolled: Boolean? = false,
type: ClientType? = ClientType.WINDOW
): ClientQueryOptions
ExtendableEventInit
fun ExtendableEventInit(
bubbles: Boolean? = false,
cancelable: Boolean? = false,
composed: Boolean? = false
): ExtendableEventInit
ExtendableMessageEventInit
fun ExtendableMessageEventInit(
data: Any? = undefined,
origin: String? = undefined,
lastEventId: String? = undefined,
source: UnionClientOrMessagePortOrServiceWorker? = undefined,
ports: Array<MessagePort>? = undefined,
bubbles: Boolean? = false,
cancelable: Boolean? = false,
composed: Boolean? = false
): ExtendableMessageEventInit
FetchEventInit
fun FetchEventInit(
request: Request?,
clientId: String? = null,
isReload: Boolean? = false,
bubbles: Boolean? = false,
cancelable: Boolean? = false,
composed: Boolean? = false
): FetchEventInit
ForeignFetchEventInit
fun ForeignFetchEventInit(
request: Request?,
origin: String? = "null",
bubbles: Boolean? = false,
cancelable: Boolean? = false,
composed: Boolean? = false
): ForeignFetchEventInit
ForeignFetchOptions
fun ForeignFetchOptions(
scopes: Array<String>?,
origins: Array<String>?
): ForeignFetchOptions
ForeignFetchResponse
fun ForeignFetchResponse(
response: Response?,
origin: String? = undefined,
headers: Array<String>? = undefined
): ForeignFetchResponse
RegistrationOptions
fun RegistrationOptions(
scope: String? = undefined,
type: WorkerType? = WorkerType.CLASSIC
): RegistrationOptions
ServiceWorkerMessageEventInit
fun ServiceWorkerMessageEventInit(
data: Any? = undefined,
origin: String? = undefined,
lastEventId: String? = undefined,
source: UnionMessagePortOrServiceWorker? = undefined,
ports: Array<MessagePort>? = undefined,
bubbles: Boolean? = false,
cancelable: Boolean? = false,
composed: Boolean? = false
): ServiceWorkerMessageEventInit
Companion Object Properties
ACTIVATED
val ServiceWorkerState.Companion.ACTIVATED: ServiceWorkerState
ACTIVATING
val ServiceWorkerState.Companion.ACTIVATING: ServiceWorkerState
ALL
val ClientType.Companion.ALL: ClientType
INSTALLED
val ServiceWorkerState.Companion.INSTALLED: ServiceWorkerState
INSTALLING
val ServiceWorkerState.Companion.INSTALLING: ServiceWorkerState
REDUNDANT
val ServiceWorkerState.Companion.REDUNDANT: ServiceWorkerState
SHAREDWORKER
val ClientType.Companion.SHAREDWORKER: ClientType
WINDOW
val ClientType.Companion.WINDOW: ClientType
WORKER
val ClientType.Companion.WORKER: ClientType