Package-level declarations

Kotlin JavaScript wrappers for the Web Workers API.

Kotlin JavaScript wrappers for the Web Workers API.

Types

Link copied to clipboard
abstract external class Cache

Exposes the JavaScript Cache to Kotlin

Since Kotlin 1.1
abstract external class Cache : JsAny

Exposes the JavaScript Cache to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface CacheBatchOperation
Since Kotlin 1.1
external interface CacheBatchOperation : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface CacheQueryOptions
Since Kotlin 1.1
external interface CacheQueryOptions : JsAny
Since Kotlin 1.8
Link copied to clipboard
abstract external class CacheStorage

Exposes the JavaScript CacheStorage to Kotlin

Since Kotlin 1.1
abstract external class CacheStorage : JsAny

Exposes the JavaScript CacheStorage to Kotlin

Since Kotlin 1.8
Link copied to clipboard

Exposes the JavaScript Client to Kotlin

Since Kotlin 1.1

Exposes the JavaScript Client to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface ClientQueryOptions
Since Kotlin 1.1
external interface ClientQueryOptions : JsAny
Since Kotlin 1.8
Link copied to clipboard
abstract external class Clients

Exposes the JavaScript Clients to Kotlin

Since Kotlin 1.1
abstract external class Clients : JsAny

Exposes the JavaScript Clients to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface ClientType
Since Kotlin 1.1
external interface ClientType : JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class ExtendableEvent(type: String, eventInitDict: ExtendableEventInit = definedExternally) : Event

Exposes the JavaScript ExtendableEvent to Kotlin

Since Kotlin 1.1
open external class ExtendableEvent(type: String, eventInitDict: ExtendableEventInit = definedExternally) : Event, JsAny

Exposes the JavaScript ExtendableEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface ExtendableEventInit : EventInit
Since Kotlin 1.1
external interface ExtendableEventInit : EventInit, JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class ExtendableMessageEvent(type: String, eventInitDict: ExtendableMessageEventInit = definedExternally) : ExtendableEvent

Exposes the JavaScript ExtendableMessageEvent to Kotlin

Since Kotlin 1.1
open external class ExtendableMessageEvent(type: String, eventInitDict: ExtendableMessageEventInit = definedExternally) : ExtendableEvent, JsAny

Exposes the JavaScript ExtendableMessageEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open external class FetchEvent(type: String, eventInitDict: FetchEventInit) : ExtendableEvent

Exposes the JavaScript FetchEvent to Kotlin

Since Kotlin 1.1
open external class FetchEvent(type: String, eventInitDict: FetchEventInit) : ExtendableEvent, JsAny

Exposes the JavaScript FetchEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface FetchEventInit : ExtendableEventInit
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
open external class ForeignFetchEvent(type: String, eventInitDict: ForeignFetchEventInit) : ExtendableEvent
Since Kotlin 1.1
open external class ForeignFetchEvent(type: String, eventInitDict: ForeignFetchEventInit) : ExtendableEvent, JsAny
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
external interface ForeignFetchOptions
Since Kotlin 1.1
external interface ForeignFetchOptions : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface ForeignFetchResponse
Since Kotlin 1.1
external interface ForeignFetchResponse : JsAny
Since Kotlin 1.8
Link copied to clipboard
external interface FrameType
Since Kotlin 1.1
external interface FrameType : JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class FunctionalEvent : ExtendableEvent
Since Kotlin 1.1
open external class FunctionalEvent : ExtendableEvent, JsAny
Since Kotlin 1.8
Link copied to clipboard
open external class InstallEvent(type: String, eventInitDict: ExtendableEventInit = definedExternally) : ExtendableEvent

Exposes the JavaScript InstallEvent to Kotlin

Since Kotlin 1.1
open external class InstallEvent(type: String, eventInitDict: ExtendableEventInit = definedExternally) : ExtendableEvent, JsAny

Exposes the JavaScript InstallEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface RegistrationOptions
Since Kotlin 1.1
external interface RegistrationOptions : JsAny
Since Kotlin 1.8
Link copied to clipboard

Exposes the JavaScript ServiceWorker to Kotlin

Since Kotlin 1.1

Exposes the JavaScript ServiceWorker to Kotlin

Since Kotlin 1.8
Link copied to clipboard
abstract external class ServiceWorkerContainer : EventTarget

Exposes the JavaScript ServiceWorkerContainer to Kotlin

Since Kotlin 1.1
abstract external class ServiceWorkerContainer : EventTarget, JsAny

Exposes the JavaScript ServiceWorkerContainer to Kotlin

Since Kotlin 1.8
Link copied to clipboard

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

Since Kotlin 1.1

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

Since Kotlin 1.8
Link copied to clipboard
open external class ServiceWorkerMessageEvent(type: String, eventInitDict: ServiceWorkerMessageEventInit = definedExternally) : Event

Exposes the JavaScript ServiceWorkerMessageEvent to Kotlin

Since Kotlin 1.1
open external class ServiceWorkerMessageEvent(type: String, eventInitDict: ServiceWorkerMessageEventInit = definedExternally) : Event, JsAny

Exposes the JavaScript ServiceWorkerMessageEvent to Kotlin

Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
abstract external class ServiceWorkerRegistration : EventTarget

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

Since Kotlin 1.1
abstract external class ServiceWorkerRegistration : EventTarget, JsAny

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

Since Kotlin 1.8
Link copied to clipboard
external interface ServiceWorkerState
Since Kotlin 1.1
external interface ServiceWorkerState : JsAny
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
abstract external class WindowClient : Client

Exposes the JavaScript WindowClient to Kotlin

Since Kotlin 1.1
abstract external class WindowClient : Client, JsAny

Exposes the JavaScript WindowClient to Kotlin

Since Kotlin 1.8

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun CacheBatchOperation(type: String? = undefined, request: Request? = undefined, response: Response? = undefined, options: CacheQueryOptions? = undefined): CacheBatchOperation
Since Kotlin 1.1
fun CacheBatchOperation(type: String? = undefined, request: Request? = undefined, response: Response? = undefined, options: CacheQueryOptions? = undefined): CacheBatchOperation
Since Kotlin 1.8
Link copied to clipboard
inline fun CacheQueryOptions(ignoreSearch: Boolean? = false, ignoreMethod: Boolean? = false, ignoreVary: Boolean? = false, cacheName: String? = undefined): CacheQueryOptions
Since Kotlin 1.1
fun CacheQueryOptions(ignoreSearch: Boolean? = false, ignoreMethod: Boolean? = false, ignoreVary: Boolean? = false, cacheName: String? = undefined): CacheQueryOptions
Since Kotlin 1.8
Link copied to clipboard
inline fun ClientQueryOptions(includeUncontrolled: Boolean? = false, type: ClientType? = ClientType.WINDOW): ClientQueryOptions
Since Kotlin 1.1
fun ClientQueryOptions(includeUncontrolled: Boolean? = false, type: ClientType? = ClientType.WINDOW): ClientQueryOptions
Since Kotlin 1.8
Link copied to clipboard
inline fun ExtendableEventInit(bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableEventInit
Since Kotlin 1.1
fun ExtendableEventInit(bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableEventInit
Since Kotlin 1.8
Link copied to clipboard
inline 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
Since Kotlin 1.1
fun ExtendableMessageEventInit(data: JsAny? = undefined, origin: String? = undefined, lastEventId: String? = undefined, source: UnionClientOrMessagePortOrServiceWorker? = undefined, ports: JsArray<MessagePort>? = undefined, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableMessageEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun FetchEventInit(request: Request?, clientId: String? = null, isReload: Boolean? = false, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FetchEventInit
Since Kotlin 1.1
fun FetchEventInit(request: Request?, clientId: String? = null, isReload: Boolean? = false, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FetchEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun ForeignFetchEventInit(request: Request?, origin: String? = "null", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ForeignFetchEventInit
Since Kotlin 1.1
fun ForeignFetchEventInit(request: Request?, origin: String? = "null", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ForeignFetchEventInit
Since Kotlin 1.8
Link copied to clipboard
inline fun ForeignFetchOptions(scopes: Array<String>?, origins: Array<String>?): ForeignFetchOptions
Since Kotlin 1.1
Since Kotlin 1.8
Link copied to clipboard
inline fun ForeignFetchResponse(response: Response?, origin: String? = undefined, headers: Array<String>? = undefined): ForeignFetchResponse
Since Kotlin 1.1
fun ForeignFetchResponse(response: Response?, origin: String? = undefined, headers: JsArray<JsString>? = undefined): ForeignFetchResponse
Since Kotlin 1.8
Link copied to clipboard
inline fun RegistrationOptions(scope: String? = undefined, type: WorkerType? = WorkerType.CLASSIC): RegistrationOptions
Since Kotlin 1.1
fun RegistrationOptions(scope: String? = undefined, type: WorkerType? = WorkerType.CLASSIC): RegistrationOptions
Since Kotlin 1.8
Link copied to clipboard
inline 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
Since Kotlin 1.1
fun ServiceWorkerMessageEventInit(data: JsAny? = undefined, origin: String? = undefined, lastEventId: String? = undefined, source: UnionMessagePortOrServiceWorker? = undefined, ports: JsArray<MessagePort>? = undefined, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ServiceWorkerMessageEventInit
Since Kotlin 1.8