Clipboard

abstract external class Clipboard : EventTarget

Exposes the JavaScript Clipboard to Kotlin

Constructors

Clipboard
Link copied to clipboard
fun Clipboard()

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
read
Link copied to clipboard
fun read(): Promise<DataTransfer>
readText
Link copied to clipboard
fun readText(): Promise<String>
removeEventListener
Link copied to clipboard
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
write
Link copied to clipboard
fun write(data: DataTransfer): Promise<Unit>
writeText
Link copied to clipboard
fun writeText(data: String): Promise<Unit>