Clipboard

abstract external class Clipboard : EventTarget

Exposes the JavaScript Clipboard to Kotlin

Constructors

Clipboard
Link copied to clipboard
JS
fun Clipboard()

Functions

addEventListener
Link copied to clipboard
JS
fun addEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun addEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
dispatchEvent
Link copied to clipboard
JS
fun dispatchEvent(event: Event): Boolean
read
Link copied to clipboard
JS
fun read(): Promise<DataTransfer>
readText
Link copied to clipboard
JS
fun readText(): Promise<String>
removeEventListener
Link copied to clipboard
JS
fun removeEventListener(type: String, callback: (Event) -> Unit?, options: dynamic = definedExternally)
fun removeEventListener(type: String, callback: EventListener?, options: dynamic = definedExternally)
write
Link copied to clipboard
JS
fun write(data: DataTransfer): Promise<Unit>
writeText
Link copied to clipboard
JS
fun writeText(data: String): Promise<Unit>