SharedWorkerGlobalScope

Exposes the JavaScript SharedWorkerGlobalScope to Kotlin

Since Kotlin

1.1

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
abstract val caches: CacheStorage
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
open val name: String
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
open var onconnect: (Event) -> dynamic?
Since Kotlin 1.1
Link copied to clipboard
open var onerror: (dynamic, String, Int, Int, Any?) -> dynamic?
Since Kotlin 1.1
Link copied to clipboard
open var onlanguagechange: (Event) -> dynamic?
Since Kotlin 1.1
Link copied to clipboard
open var onoffline: (Event) -> dynamic?
Since Kotlin 1.1
Link copied to clipboard
open var ononline: (Event) -> dynamic?
Since Kotlin 1.1
Link copied to clipboard
open var onrejectionhandled: (Event) -> dynamic?
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1
Link copied to clipboard
abstract val origin: String
Since Kotlin 1.1
Link copied to clipboard
abstract val performance: Performance
Since Kotlin 1.1
Link copied to clipboard
Since Kotlin 1.1

Functions

Link copied to clipboard
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
Since Kotlin 1.1
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
fun close()
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
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
fun importScripts(vararg urls: String)
Since Kotlin 1.1
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
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