WorkerGlobalScope

JS
1.1
abstract class WorkerGlobalScope : 
    EventTarget,
    WindowOrWorkerGlobalScope,
    GlobalPerformance

Exposes the JavaScript WorkerGlobalScope to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript WorkerGlobalScope to Kotlin

WorkerGlobalScope()

Properties

JS
1.1

location

open val location: WorkerLocation
JS
1.1

navigator

open val navigator: WorkerNavigator
JS
1.1

onerror

open var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)?
JS
1.1

onlanguagechange

open var onlanguagechange: ((Event) -> dynamic)?
JS
1.1

onoffline

open var onoffline: ((Event) -> dynamic)?
JS
1.1

ononline

open var ononline: ((Event) -> dynamic)?
JS
1.1

onrejectionhandled

open var onrejectionhandled: ((Event) -> dynamic)?
JS
1.1

onunhandledrejection

open var onunhandledrejection: ((PromiseRejectionEvent) -> dynamic)?
JS
1.1

self

open val self: WorkerGlobalScope

Functions

JS
1.1

importScripts

fun importScripts(vararg urls: String)

Inheritors

JS
1.1

DedicatedWorkerGlobalScope

Exposes the JavaScript DedicatedWorkerGlobalScope to Kotlin

abstract class DedicatedWorkerGlobalScope : WorkerGlobalScope
JS
1.1

ServiceWorkerGlobalScope

Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin

abstract class ServiceWorkerGlobalScope : WorkerGlobalScope
JS
1.1

SharedWorkerGlobalScope

Exposes the JavaScript SharedWorkerGlobalScope to Kotlin

abstract class SharedWorkerGlobalScope : WorkerGlobalScope