WindowOrWorkerGlobalScope

external interface WindowOrWorkerGlobalScope(source)

Exposes the JavaScript WindowOrWorkerGlobalScope to Kotlin

Since Kotlin

1.1

Inheritors

external interface WindowOrWorkerGlobalScope : JsAny(source)

Exposes the JavaScript WindowOrWorkerGlobalScope to Kotlin

Since Kotlin

1.8

Inheritors

Properties

Link copied to clipboard
abstract val caches: CacheStorage
Since Kotlin 1.1
abstract val caches: CacheStorage
Since Kotlin 1.8
Link copied to clipboard
abstract val origin: String
Since Kotlin 1.1
abstract val origin: String
Since Kotlin 1.8

Functions

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

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8