WindowOrWorkerGlobalScope

external interface WindowOrWorkerGlobalScope (source)

Platform and version requirements: JS

Exposes the JavaScript WindowOrWorkerGlobalScope to Kotlin

Properties

caches

abstract val caches: CacheStorage

origin

abstract val origin: String

Functions

atob

abstract fun atob(data: String): String

btoa

abstract fun btoa(data: String): String

clearInterval

abstract fun clearInterval(handle: Int = definedExternally)

clearTimeout

abstract fun clearTimeout(handle: Int = definedExternally)

createImageBitmap

abstract fun createImageBitmap(
    image: dynamic,
    options: ImageBitmapOptions = definedExternally
): Promise<ImageBitmap>
abstract fun createImageBitmap(
    image: dynamic,
    sx: Int,
    sy: Int,
    sw: Int,
    sh: Int,
    options: ImageBitmapOptions = definedExternally
): Promise<ImageBitmap>

fetch

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

setInterval

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

setTimeout

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

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Inheritors

Window

abstract external class Window : 
    EventTarget,
    GlobalEventHandlers,
    WindowEventHandlers,
    WindowOrWorkerGlobalScope,
    WindowSessionStorage,
    WindowLocalStorage,
    GlobalPerformance,
    UnionMessagePortOrWindow

Exposes the JavaScript Window to Kotlin

WorkerGlobalScope

abstract external class WorkerGlobalScope : 
    EventTarget,
    WindowOrWorkerGlobalScope,
    GlobalPerformance

Exposes the JavaScript WorkerGlobalScope to Kotlin