Performance

abstract external class Performance : EventTarget

Exposes the JavaScript Performance to Kotlin

Constructors

Performance
Link copied to clipboard
fun Performance()

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)
dispatchEvent
Link copied to clipboard
fun dispatchEvent(event: Event): Boolean
now
Link copied to clipboard
fun now(): Double
removeEventListener
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)

Properties

navigation
Link copied to clipboard
open val navigation: PerformanceNavigation
timing
Link copied to clipboard
open val timing: PerformanceTiming