WorkerGlobalScope
abstract class WorkerGlobalScope :
EventTarget,
WindowOrWorkerGlobalScope,
GlobalPerformance
Exposes the JavaScript WorkerGlobalScope to Kotlin
Constructors
<init>
Exposes the JavaScript WorkerGlobalScope to Kotlin
WorkerGlobalScope()
Properties
location
open val location: WorkerLocation
navigator
open val navigator: WorkerNavigator
onerror
open var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)?
onlanguagechange
open var onlanguagechange: ((Event) -> dynamic)?
onrejectionhandled
open var onrejectionhandled: ((Event) -> dynamic)?
onunhandledrejection
open var onunhandledrejection: ((PromiseRejectionEvent) -> dynamic)?
self
open val self: WorkerGlobalScope
Functions
importScripts
fun importScripts(vararg urls: String)
Inheritors
DedicatedWorkerGlobalScope
Exposes the JavaScript DedicatedWorkerGlobalScope to Kotlin
abstract class DedicatedWorkerGlobalScope : WorkerGlobalScope
ServiceWorkerGlobalScope
Exposes the JavaScript ServiceWorkerGlobalScope to Kotlin
abstract class ServiceWorkerGlobalScope : WorkerGlobalScope
SharedWorkerGlobalScope
Exposes the JavaScript SharedWorkerGlobalScope to Kotlin
abstract class SharedWorkerGlobalScope : WorkerGlobalScope