WindowEventHandlers

external interface WindowEventHandlers (source)

Platform and version requirements: JS

Exposes the JavaScript WindowEventHandlers to Kotlin

Properties

onafterprint

abstract var onafterprint: (Event) -> dynamic

onbeforeprint

abstract var onbeforeprint: (Event) -> dynamic

onbeforeunload

abstract var onbeforeunload: (Event) -> String?

onhashchange

abstract var onhashchange: (Event) -> dynamic

onlanguagechange

abstract var onlanguagechange: (Event) -> dynamic

onmessage

abstract var onmessage: (Event) -> dynamic

onoffline

abstract var onoffline: (Event) -> dynamic

ononline

abstract var ononline: (Event) -> dynamic

onpagehide

abstract var onpagehide: (Event) -> dynamic

onpageshow

abstract var onpageshow: (Event) -> dynamic

onpopstate

abstract var onpopstate: (Event) -> dynamic

onrejectionhandled

abstract var onrejectionhandled: (Event) -> dynamic

onstorage

abstract var onstorage: (Event) -> dynamic

onunhandledrejection

abstract var onunhandledrejection: (Event) -> dynamic

onunload

abstract var onunload: (Event) -> dynamic

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

HTMLBodyElement

abstract external class HTMLBodyElement : 
    HTMLElement,
    WindowEventHandlers

Exposes the JavaScript HTMLBodyElement to Kotlin

HTMLFrameSetElement

abstract external class HTMLFrameSetElement : 
    HTMLElement,
    WindowEventHandlers

Exposes the JavaScript HTMLFrameSetElement to Kotlin

SVGSVGElement

abstract external class SVGSVGElement : 
    SVGGraphicsElement,
    SVGFitToViewBox,
    SVGZoomAndPan,
    WindowEventHandlers

Exposes the JavaScript SVGSVGElement to Kotlin

Window

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

Exposes the JavaScript Window to Kotlin