DedicatedWorkerGlobalScope

Exposes the JavaScript DedicatedWorkerGlobalScope to Kotlin

Constructors

Link copied to clipboard
constructor()

Properties

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

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?)
fun addEventListener(type: String, callback: EventListener?)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: AddEventListenerOptions)
fun addEventListener(type: String, callback: EventListener?, options: Boolean)
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)
Link copied to clipboard
abstract fun clearTimeout(handle: Int)
Link copied to clipboard
fun close()
Link copied to clipboard
abstract fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions): Promise<*>
Link copied to clipboard
Link copied to clipboard
abstract fun fetch(input: String, init: RequestInit): Promise<Response>
abstract fun fetch(input: Request, init: RequestInit): Promise<Response>
Link copied to clipboard
fun importScripts(vararg urls: String)
Link copied to clipboard
fun postMessage(message: JsAny?, transfer: JsArray<JsAny>)
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: EventListenerOptions)
fun removeEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
abstract fun setInterval(handler: () -> JsAny?, timeout: Int, vararg arguments: JsAny?): Int
abstract fun setInterval(handler: String, timeout: Int, vararg arguments: JsAny?): Int
Link copied to clipboard
abstract fun setTimeout(handler: () -> JsAny?, timeout: Int, vararg arguments: JsAny?): Int
abstract fun setTimeout(handler: String, timeout: Int, vararg arguments: JsAny?): Int