DedicatedWorkerGlobalScope

Exposes the JavaScript DedicatedWorkerGlobalScope to Kotlin

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
abstract fun atob(data: String): String
Link copied to clipboard
abstract fun btoa(data: String): String
Link copied to clipboard
abstract fun clearInterval(handle: Int = definedExternally)
Link copied to clipboard
abstract fun clearTimeout(handle: Int = definedExternally)
Link copied to clipboard
fun close()
Link copied to clipboard
abstract fun createImageBitmap(image: ImageBitmapSource, options: ImageBitmapOptions = definedExternally): Promise<ImageBitmap>
abstract fun createImageBitmap(    image: ImageBitmapSource,     sx: Int,     sy: Int,     sw: Int,     sh: Int,     options: ImageBitmapOptions = definedExternally): Promise<ImageBitmap>
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
abstract fun fetch(input: dynamic, init: RequestInit = definedExternally): Promise<Response>
Link copied to clipboard
fun importScripts(vararg urls: String)
Link copied to clipboard
fun postMessage(message: Any?, transfer: Array<dynamic> = definedExternally)
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
abstract fun setInterval(    handler: dynamic,     timeout: Int = definedExternally,     vararg arguments: Any?): Int
Link copied to clipboard
abstract fun setTimeout(    handler: dynamic,     timeout: Int = definedExternally,     vararg arguments: Any?): Int

Properties

Link copied to clipboard
abstract val caches: CacheStorage
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var onerror: (dynamic, String, Int, Int, Any?) -> dynamic?
Link copied to clipboard
open var onlanguagechange: (Event) -> dynamic?
Link copied to clipboard
open var onmessage: (MessageEvent) -> dynamic?
Link copied to clipboard
open var onoffline: (Event) -> dynamic?
Link copied to clipboard
open var ononline: (Event) -> dynamic?
Link copied to clipboard
open var onrejectionhandled: (Event) -> dynamic?
Link copied to clipboard
Link copied to clipboard
abstract val origin: String
Link copied to clipboard
abstract val performance: Performance
Link copied to clipboard