EventTarget

JS
1.1
abstract class EventTarget

Exposes the JavaScript EventTarget to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript EventTarget to Kotlin

EventTarget()

Functions

JS
1.1

addEventListener

fun addEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun addEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)
JS
1.1

dispatchEvent

fun dispatchEvent(event: Event): Boolean
JS
1.1

removeEventListener

fun removeEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun removeEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

Inheritors

JS
1.1

ApplicationCache

abstract class ApplicationCache : EventTarget
JS
1.1

AudioTrackList

abstract class AudioTrackList : EventTarget
JS
1.1

BroadcastChannel

Exposes the JavaScript BroadcastChannel to Kotlin

open class BroadcastChannel : EventTarget
JS
1.1

EventSource

Exposes the JavaScript EventSource to Kotlin

open class EventSource : EventTarget
JS
1.1

FileReader

Exposes the JavaScript FileReader to Kotlin

open class FileReader : EventTarget
JS
1.1

MediaQueryList

Exposes the JavaScript MediaQueryList to Kotlin

abstract class MediaQueryList : EventTarget
JS
1.1

MessagePort

Exposes the JavaScript MessagePort to Kotlin

JS
1.1

Node

Exposes the JavaScript Node to Kotlin

abstract class Node : EventTarget
JS
1.1

Notification

Exposes the JavaScript Notification to Kotlin

open class Notification : EventTarget
JS
1.1

Performance

Exposes the JavaScript Performance to Kotlin

abstract class Performance : EventTarget
JS
1.1

ServiceWorker

Exposes the JavaScript ServiceWorker to Kotlin

abstract class ServiceWorker : 
    EventTarget,
    AbstractWorker,
    UnionMessagePortOrServiceWorker,
    UnionClientOrMessagePortOrServiceWorker
JS
1.1

ServiceWorkerContainer

Exposes the JavaScript ServiceWorkerContainer to Kotlin

abstract class ServiceWorkerContainer : EventTarget
JS
1.1

ServiceWorkerRegistration

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

abstract class ServiceWorkerRegistration : EventTarget
JS
1.1

SharedWorker

Exposes the JavaScript SharedWorker to Kotlin

open class SharedWorker : EventTarget, AbstractWorker
JS
1.1

TextTrack

Exposes the JavaScript TextTrack to Kotlin

abstract class TextTrack : 
    EventTarget,
    UnionAudioTrackOrTextTrackOrVideoTrack
JS
1.1

TextTrackCue

abstract class TextTrackCue : EventTarget
JS
1.1

TextTrackList

abstract class TextTrackList : EventTarget
JS
1.1

VideoTrackList

abstract class VideoTrackList : EventTarget
JS
1.1

WebSocket

Exposes the JavaScript WebSocket to Kotlin

open class WebSocket : EventTarget
JS
1.1

Window

Exposes the JavaScript Window to Kotlin

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

Worker

Exposes the JavaScript Worker to Kotlin

open class Worker : EventTarget, AbstractWorker
JS
1.1

WorkerGlobalScope

Exposes the JavaScript WorkerGlobalScope to Kotlin

abstract class WorkerGlobalScope : 
    EventTarget,
    WindowOrWorkerGlobalScope,
    GlobalPerformance
JS
1.1

XMLHttpRequestEventTarget

Exposes the JavaScript XMLHttpRequestEventTarget to Kotlin

abstract class XMLHttpRequestEventTarget : EventTarget