GlobalScope

abstract external class GlobalScope : EventTarget, WindowOrWorkerGlobalScope, GlobalPerformance, JsAny

Constructors

Link copied to clipboard
constructor()

Properties

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

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?)
fun addEventListener(type: String, callback: EventListener?)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun addEventListener(type: String, callback: (Event) -> Unit?, options: AddEventListenerOptions)
fun addEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
abstract fun atob(data: String): String
Link copied to clipboard
abstract fun btoa(data: String): String
Link copied to clipboard
Link copied to clipboard
abstract fun clearInterval(handle: Int)
Link copied to clipboard
abstract fun clearTimeout(handle: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun fetch(input: String, init: RequestInit): Promise<Response>
abstract fun fetch(input: Request, init: RequestInit): Promise<Response>
Link copied to clipboard
fun JsAny.getAny(key: Int): JsAny?
fun JsAny.getAny(key: String): JsAny?
fun JsAny.getAny(key: JsAny?): JsAny?
Link copied to clipboard
Link copied to clipboard
fun postMessage(message: JsAny, targetOrigin: JsAny = definedExternally, transfer: JsAny = definedExternally)
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: Boolean)
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: EventListenerOptions)
fun removeEventListener(type: String, callback: EventListener?, options: Boolean)
Link copied to clipboard
fun requestAnimationFrame(callback: (Double) -> Unit): Int
Link copied to clipboard
fun JsAny.setAny(key: Int, value: JsAny?)
fun JsAny.setAny(key: String, value: JsAny?)
fun JsAny.setAny(key: JsAny?, value: JsAny?)
Link copied to clipboard
abstract fun setInterval(handler: () -> JsAny?, timeout: Int, vararg arguments: JsAny?): Int
abstract fun setInterval(handler: String, timeout: Int, vararg arguments: JsAny?): Int
Link copied to clipboard
abstract fun setTimeout(handler: () -> JsAny?, timeout: Int, vararg arguments: JsAny?): Int
abstract fun setTimeout(handler: String, timeout: Int, vararg arguments: JsAny?): Int