WindowOrWorkerGlobalScope

external interface WindowOrWorkerGlobalScope

Exposes the JavaScript WindowOrWorkerGlobalScope to Kotlin

Functions

atob
Link copied to clipboard
abstract fun atob(data: String): String
btoa
Link copied to clipboard
abstract fun btoa(data: String): String
clearInterval
Link copied to clipboard
abstract fun clearInterval(handle: Int = definedExternally)
clearTimeout
Link copied to clipboard
abstract fun clearTimeout(handle: Int = definedExternally)
createImageBitmap
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>
fetch
Link copied to clipboard
abstract fun fetch(input: dynamic, init: RequestInit = definedExternally): Promise<Response>
setInterval
Link copied to clipboard
abstract fun setInterval(handler: dynamic, timeout: Int = definedExternally, vararg arguments: Any?): Int
setTimeout
Link copied to clipboard
abstract fun setTimeout(handler: dynamic, timeout: Int = definedExternally, vararg arguments: Any?): Int

Properties

caches
Link copied to clipboard
abstract val caches: CacheStorage
origin
Link copied to clipboard
abstract val origin: String

Inheritors

Window
Link copied to clipboard
WorkerGlobalScope
Link copied to clipboard