Package org.w3c.workers

Kotlin JavaScript wrappers for the Web Workers API.

Types

JS
1.1

Cache

Exposes the JavaScript Cache to Kotlin

abstract class Cache
JS
1.1

CacheBatchOperation

interface CacheBatchOperation
JS
1.1

CacheQueryOptions

interface CacheQueryOptions
JS
1.1

CacheStorage

Exposes the JavaScript CacheStorage to Kotlin

abstract class CacheStorage
JS
1.1

Client

Exposes the JavaScript Client to Kotlin

abstract class Client : 
    UnionClientOrMessagePortOrServiceWorker
JS
1.1

ClientQueryOptions

interface ClientQueryOptions
JS
1.1

Clients

Exposes the JavaScript Clients to Kotlin

abstract class Clients
JS
1.1

ClientType

interface ClientType
JS
1.1

ExtendableEvent

Exposes the JavaScript ExtendableEvent to Kotlin

open class ExtendableEvent : Event
JS
1.1

ExtendableEventInit

interface ExtendableEventInit : EventInit
JS
1.1

ExtendableMessageEvent

Exposes the JavaScript ExtendableMessageEvent to Kotlin

open class ExtendableMessageEvent : ExtendableEvent
JS
1.1

ExtendableMessageEventInit

interface ExtendableMessageEventInit : ExtendableEventInit
JS
1.1

FetchEvent

Exposes the JavaScript FetchEvent to Kotlin

open class FetchEvent : ExtendableEvent
JS
1.1

FetchEventInit

interface FetchEventInit : ExtendableEventInit
JS
1.1

ForeignFetchEvent

open class ForeignFetchEvent : ExtendableEvent
JS
1.1

ForeignFetchEventInit

interface ForeignFetchEventInit : ExtendableEventInit
JS
1.1

ForeignFetchOptions

interface ForeignFetchOptions
JS
1.1

ForeignFetchResponse

interface ForeignFetchResponse
JS
1.1

FrameType

interface FrameType
JS
1.1

FunctionalEvent

open class FunctionalEvent : ExtendableEvent
JS
1.1

InstallEvent

Exposes the JavaScript InstallEvent to Kotlin

open class InstallEvent : ExtendableEvent
JS
1.1

RegistrationOptions

interface RegistrationOptions
JS
1.1

ServiceWorker

Exposes the JavaScript ServiceWorker to Kotlin

abstract class ServiceWorker : 
    EventTarget,
    AbstractWorker,
    UnionMessagePortOrServiceWorker,
    UnionClientOrMessagePortOrServiceWorker
JS
1.1

ServiceWorkerContainer

Exposes the JavaScript ServiceWorkerContainer to Kotlin

abstract class ServiceWorkerContainer : EventTarget
JS
1.1

ServiceWorkerGlobalScope

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

abstract class ServiceWorkerGlobalScope : WorkerGlobalScope
JS
1.1

ServiceWorkerMessageEvent

Exposes the JavaScript ServiceWorkerMessageEvent to Kotlin

open class ServiceWorkerMessageEvent : Event
JS
1.1

ServiceWorkerMessageEventInit

interface ServiceWorkerMessageEventInit : EventInit
JS
1.1

ServiceWorkerRegistration

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

abstract class ServiceWorkerRegistration : EventTarget
JS
1.1

ServiceWorkerState

interface ServiceWorkerState
JS
1.1

UnionClientOrMessagePortOrServiceWorker

interface UnionClientOrMessagePortOrServiceWorker
JS
1.1

UnionMessagePortOrServiceWorker

interface UnionMessagePortOrServiceWorker
JS
1.1

WindowClient

Exposes the JavaScript WindowClient to Kotlin

abstract class WindowClient : Client

Functions

JS
1.1

CacheBatchOperation

fun CacheBatchOperation(
    type: String? = undefined,
    request: Request? = undefined,
    response: Response? = undefined,
    options: CacheQueryOptions? = undefined
): CacheBatchOperation
JS
1.1

CacheQueryOptions

fun CacheQueryOptions(
    ignoreSearch: Boolean? = false,
    ignoreMethod: Boolean? = false,
    ignoreVary: Boolean? = false,
    cacheName: String? = undefined
): CacheQueryOptions
JS
1.1

ClientQueryOptions

fun ClientQueryOptions(
    includeUncontrolled: Boolean? = false,
    type: ClientType? = ClientType.WINDOW
): ClientQueryOptions
JS
1.1

ExtendableEventInit

fun ExtendableEventInit(
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): ExtendableEventInit
JS
1.1

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
JS
1.1

FetchEventInit

fun FetchEventInit(
    request: Request?,
    clientId: String? = null,
    isReload: Boolean? = false,
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): FetchEventInit
JS
1.1

ForeignFetchEventInit

fun ForeignFetchEventInit(
    request: Request?,
    origin: String? = "null",
    bubbles: Boolean? = false,
    cancelable: Boolean? = false,
    composed: Boolean? = false
): ForeignFetchEventInit
JS
1.1

ForeignFetchOptions

fun ForeignFetchOptions(
    scopes: Array<String>?,
    origins: Array<String>?
): ForeignFetchOptions
JS
1.1

ForeignFetchResponse

fun ForeignFetchResponse(
    response: Response?,
    origin: String? = undefined,
    headers: Array<String>? = undefined
): ForeignFetchResponse
JS
1.1

RegistrationOptions

fun RegistrationOptions(
    scope: String? = undefined,
    type: WorkerType? = WorkerType.CLASSIC
): RegistrationOptions
JS
1.1

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

JS
1.1

ACTIVATED

val ServiceWorkerState.Companion.ACTIVATED: ServiceWorkerState
JS
1.1

ACTIVATING

val ServiceWorkerState.Companion.ACTIVATING: ServiceWorkerState
JS
1.1

ALL

val ClientType.Companion.ALL: ClientType
JS
1.1

AUXILIARY

val FrameType.Companion.AUXILIARY: FrameType
JS
1.1

INSTALLED

val ServiceWorkerState.Companion.INSTALLED: ServiceWorkerState
JS
1.1

INSTALLING

val ServiceWorkerState.Companion.INSTALLING: ServiceWorkerState
JS
1.1

NESTED

val FrameType.Companion.NESTED: FrameType
JS
1.1

NONE

val FrameType.Companion.NONE: FrameType
JS
1.1

REDUNDANT

val ServiceWorkerState.Companion.REDUNDANT: ServiceWorkerState
JS
1.1

SHAREDWORKER

val ClientType.Companion.SHAREDWORKER: ClientType
JS
1.1

TOP_LEVEL

val FrameType.Companion.TOP_LEVEL: FrameType
JS
1.1

WINDOW

val ClientType.Companion.WINDOW: ClientType
JS
1.1

WORKER

val ClientType.Companion.WORKER: ClientType