MediaQueryList

abstract external class MediaQueryList : EventTarget (source)

Platform and version requirements: JS

Exposes the JavaScript MediaQueryList to Kotlin

Constructors

<init>

MediaQueryList()

Exposes the JavaScript MediaQueryList to Kotlin

Properties

matches

open val matches: Boolean

media

open val media: String

onchange

open var onchange: (Event) -> dynamic

Functions

addListener

fun addListener(listener: EventListener?)
fun addListener(listener: (Event) -> Unit)

removeListener

fun removeListener(listener: EventListener?)
fun removeListener(listener: (Event) -> Unit)

Inherited 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)