MediaQueryList

abstract external class MediaQueryList : EventTarget

Exposes the JavaScript MediaQueryList to Kotlin

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun addEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun addEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun addListener(listener: (Event) -> Unit?)
fun addListener(listener: EventListener?)
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
Link copied to clipboard
fun removeEventListener(    type: String,     callback: (Event) -> Unit?,     options: dynamic = definedExternally)
fun removeEventListener(    type: String,     callback: EventListener?,     options: dynamic = definedExternally)
Link copied to clipboard
fun removeListener(listener: (Event) -> Unit?)

Properties

Link copied to clipboard
open val matches: Boolean
Link copied to clipboard
open val media: String
Link copied to clipboard
open var onchange: (Event) -> dynamic?