EventTarget

abstract external class EventTarget (source)

Platform and version requirements: JS

Exposes the JavaScript EventTarget to Kotlin

Constructors

<init>

EventTarget()

Exposes the JavaScript EventTarget to Kotlin

Functions

addEventListener

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

dispatchEvent

fun dispatchEvent(event: Event): Boolean

removeEventListener

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

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

ApplicationCache

abstract external class ApplicationCache : EventTarget

AudioTrackList

abstract external class AudioTrackList : EventTarget

BroadcastChannel

open external class BroadcastChannel : EventTarget

Exposes the JavaScript BroadcastChannel to Kotlin

EventSource

open external class EventSource : EventTarget

Exposes the JavaScript EventSource to Kotlin

FileReader

open external class FileReader : EventTarget

Exposes the JavaScript FileReader to Kotlin

MediaQueryList

abstract external class MediaQueryList : EventTarget

Exposes the JavaScript MediaQueryList to Kotlin

MessagePort

abstract external class MessagePort : 
    EventTarget,
    UnionMessagePortOrWindow,
    UnionMessagePortOrServiceWorker,
    UnionClientOrMessagePortOrServiceWorker

Exposes the JavaScript MessagePort to Kotlin

Node

abstract external class Node : EventTarget

Exposes the JavaScript Node to Kotlin

Notification

open external class Notification : EventTarget

Exposes the JavaScript Notification to Kotlin

Performance

abstract external class Performance : EventTarget

Exposes the JavaScript Performance to Kotlin

ServiceWorker

abstract external class ServiceWorker : 
    EventTarget,
    AbstractWorker,
    UnionMessagePortOrServiceWorker,
    UnionClientOrMessagePortOrServiceWorker

Exposes the JavaScript ServiceWorker to Kotlin

ServiceWorkerContainer

abstract external class ServiceWorkerContainer : EventTarget

Exposes the JavaScript ServiceWorkerContainer to Kotlin

ServiceWorkerRegistration

abstract external class ServiceWorkerRegistration : 
    EventTarget

Exposes the JavaScript ServiceWorkerRegistration to Kotlin

SharedWorker

open external class SharedWorker : 
    EventTarget,
    AbstractWorker

Exposes the JavaScript SharedWorker to Kotlin

TextTrack

abstract external class TextTrack : 
    EventTarget,
    UnionAudioTrackOrTextTrackOrVideoTrack

Exposes the JavaScript TextTrack to Kotlin

TextTrackCue

abstract external class TextTrackCue : EventTarget

TextTrackList

abstract external class TextTrackList : EventTarget

VideoTrackList

abstract external class VideoTrackList : EventTarget

WebSocket

open external class WebSocket : EventTarget

Exposes the JavaScript WebSocket to Kotlin

Window

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

Exposes the JavaScript Window to Kotlin

Worker

open external class Worker : EventTarget, AbstractWorker

Exposes the JavaScript Worker to Kotlin

WorkerGlobalScope

abstract external class WorkerGlobalScope : 
    EventTarget,
    WindowOrWorkerGlobalScope,
    GlobalPerformance

Exposes the JavaScript WorkerGlobalScope to Kotlin

XMLHttpRequestEventTarget

abstract external class XMLHttpRequestEventTarget : 
    EventTarget

Exposes the JavaScript XMLHttpRequestEventTarget to Kotlin