Package-level declarations

Kotlin JavaScript wrappers for the Web Workers API.

Types

Link copied to clipboard
abstract external class Cache

Exposes the JavaScript Cache to Kotlin

Link copied to clipboard
external interface CacheBatchOperation
Link copied to clipboard
external interface CacheQueryOptions
Link copied to clipboard
abstract external class CacheStorage

Exposes the JavaScript CacheStorage to Kotlin

Link copied to clipboard

Exposes the JavaScript Client to Kotlin

Link copied to clipboard
external interface ClientQueryOptions
Link copied to clipboard
abstract external class Clients

Exposes the JavaScript Clients to Kotlin

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

Exposes the JavaScript ExtendableEvent to Kotlin

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

Exposes the JavaScript ExtendableMessageEvent to Kotlin

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

Exposes the JavaScript FetchEvent to Kotlin

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

Exposes the JavaScript InstallEvent to Kotlin

Link copied to clipboard
external interface RegistrationOptions
Link copied to clipboard
Link copied to clipboard
abstract external class ServiceWorkerContainer : EventTarget

Exposes the JavaScript ServiceWorkerContainer to Kotlin

Link copied to clipboard

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

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

Exposes the JavaScript ServiceWorkerMessageEvent to Kotlin

Link copied to clipboard
Link copied to clipboard
abstract external class ServiceWorkerRegistration : EventTarget

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

Link copied to clipboard
external interface ServiceWorkerState
Link copied to clipboard
Link copied to clipboard
abstract external class WindowClient : Client

Exposes the JavaScript WindowClient to Kotlin

Functions

Link copied to clipboard
inline fun CacheBatchOperation(    type: String? = undefined,     request: Request? = undefined,     response: Response? = undefined,     options: CacheQueryOptions? = undefined): CacheBatchOperation
Link copied to clipboard
inline fun CacheQueryOptions(    ignoreSearch: Boolean? = false,     ignoreMethod: Boolean? = false,     ignoreVary: Boolean? = false,     cacheName: String? = undefined): CacheQueryOptions
Link copied to clipboard
inline fun ClientQueryOptions(includeUncontrolled: Boolean? = false, type: ClientType? = ClientType.WINDOW): ClientQueryOptions
Link copied to clipboard
inline fun ExtendableEventInit(    bubbles: Boolean? = false,     cancelable: Boolean? = false,     composed: Boolean? = false): ExtendableEventInit
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
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
Link copied to clipboard
inline fun ForeignFetchEventInit(    request: Request?,     origin: String? = "null",     bubbles: Boolean? = false,     cancelable: Boolean? = false,     composed: Boolean? = false): ForeignFetchEventInit
Link copied to clipboard
inline fun ForeignFetchOptions(scopes: Array<String>?, origins: Array<String>?): ForeignFetchOptions
Link copied to clipboard
inline fun ForeignFetchResponse(    response: Response?,     origin: String? = undefined,     headers: Array<String>? = undefined): ForeignFetchResponse
Link copied to clipboard
inline fun RegistrationOptions(scope: String? = undefined, type: WorkerType? = WorkerType.CLASSIC): RegistrationOptions
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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard