WindowOrWorkerGlobalScope

JS
1.1
interface WindowOrWorkerGlobalScope
(source)

Exposes the JavaScript WindowOrWorkerGlobalScope to Kotlin

Properties

JS
1.1

caches

abstract val caches: CacheStorage
JS
1.1

origin

abstract val origin: String

Functions

JS
1.1

atob

abstract fun atob(data: String): String
JS
1.1

btoa

abstract fun btoa(data: String): String
JS
1.1

clearInterval

abstract fun clearInterval(handle: Int = definedExternally)
JS
1.1

clearTimeout

abstract fun clearTimeout(handle: Int = definedExternally)
JS
1.1

createImageBitmap

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>
JS
1.1

fetch

abstract fun fetch(
    input: dynamic,
    init: RequestInit = definedExternally
): Promise<Response>
JS
1.1

setInterval

abstract fun setInterval(
    handler: dynamic,
    timeout: Int = definedExternally,
    vararg arguments: Any?
): Int
JS
1.1

setTimeout

abstract fun setTimeout(
    handler: dynamic,
    timeout: Int = definedExternally,
    vararg arguments: Any?
): Int

Inheritors

JS
1.1

Window

Exposes the JavaScript Window to Kotlin

JS
1.1

WorkerGlobalScope

Exposes the JavaScript WorkerGlobalScope to Kotlin

abstract class WorkerGlobalScope : 
    EventTarget,
    WindowOrWorkerGlobalScope,
    GlobalPerformance