MediaQueryList

abstract external class MediaQueryList : EventTarget

Exposes the JavaScript MediaQueryList to Kotlin

Constructors

MediaQueryList
Link copied to clipboard
fun MediaQueryList()

Functions

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

Properties

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