Package org.w3c.workers

Kotlin JavaScript wrappers for the Web Workers API.

Types

Cache
Link copied to clipboard
abstract external class Cache

Exposes the JavaScript Cache to Kotlin

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

Exposes the JavaScript CacheStorage to Kotlin

Client
Link copied to clipboard
abstract external class Client : UnionClientOrMessagePortOrServiceWorker

Exposes the JavaScript Client to Kotlin

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

Exposes the JavaScript Clients to Kotlin

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

Exposes the JavaScript ExtendableEvent to Kotlin

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

Exposes the JavaScript ExtendableMessageEvent to Kotlin

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

Exposes the JavaScript FetchEvent to Kotlin

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

Exposes the JavaScript InstallEvent to Kotlin

RegistrationOptions
Link copied to clipboard
external interface RegistrationOptions
ServiceWorker
Link copied to clipboard

Exposes the JavaScript ServiceWorker to Kotlin

ServiceWorkerContainer
Link copied to clipboard
abstract external class ServiceWorkerContainer : EventTarget

Exposes the JavaScript ServiceWorkerContainer to Kotlin

ServiceWorkerGlobalScope
Link copied to clipboard
abstract external class ServiceWorkerGlobalScope : WorkerGlobalScope

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

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

Exposes the JavaScript ServiceWorkerMessageEvent to Kotlin

ServiceWorkerMessageEventInit
Link copied to clipboard
external interface ServiceWorkerMessageEventInit : EventInit
ServiceWorkerRegistration
Link copied to clipboard
abstract external class ServiceWorkerRegistration : EventTarget

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

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

Exposes the JavaScript WindowClient to Kotlin

Functions

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

ACTIVATED
Link copied to clipboard
ACTIVATING
Link copied to clipboard
ALL
Link copied to clipboard
val ClientType.Companion.ALL: ClientType
AUXILIARY
Link copied to clipboard
val FrameType.Companion.AUXILIARY: FrameType
INSTALLED
Link copied to clipboard
INSTALLING
Link copied to clipboard
NESTED
Link copied to clipboard
val FrameType.Companion.NESTED: FrameType
NONE
Link copied to clipboard
val FrameType.Companion.NONE: FrameType
REDUNDANT
Link copied to clipboard
SHAREDWORKER
Link copied to clipboard
val ClientType.Companion.SHAREDWORKER: ClientType
TOP_LEVEL
Link copied to clipboard
val FrameType.Companion.TOP_LEVEL: FrameType
WINDOW
Link copied to clipboard
val ClientType.Companion.WINDOW: ClientType
WORKER
Link copied to clipboard
val ClientType.Companion.WORKER: ClientType