WindowOrWorkerGlobalScope

external interface WindowOrWorkerGlobalScope(source)

Exposes the JavaScript WindowOrWorkerGlobalScope to Kotlin

Since Kotlin

1.1

Inheritors

Properties

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

Functions

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