kvision / pl.treksoft.kvision.electron / Clipboard

Clipboard

external interface Clipboard : EventEmitter

Functions

availableFormats

abstract fun availableFormats(type: String? = definedExternally): Array<String>

clear

abstract fun clear(type: String? = definedExternally): Unit

has

abstract fun has(format: String, type: String? = definedExternally): Boolean

read

abstract fun read(format: String): String

readBookmark

abstract fun readBookmark(): ReadBookmark

readBuffer

abstract fun readBuffer(format: String): <ERROR CLASS>

readFindText

abstract fun readFindText(): String

readHTML

abstract fun readHTML(type: String? = definedExternally): String

readImage

abstract fun readImage(type: String? = definedExternally): NativeImage

readRTF

abstract fun readRTF(type: String? = definedExternally): String

readText

abstract fun readText(type: String? = definedExternally): String

write

abstract fun write(data: Data, type: String? = definedExternally): Unit

writeBookmark

abstract fun writeBookmark(title: String, url: String, type: String? = definedExternally): Unit

writeBuffer

abstract fun writeBuffer(format: String, buffer: <ERROR CLASS>, type: String? = definedExternally): Unit

writeFindText

abstract fun writeFindText(text: String): Unit

writeHTML

abstract fun writeHTML(markup: String, type: String? = definedExternally): Unit

writeImage

abstract fun writeImage(image: NativeImage, type: String? = definedExternally): Unit

writeRTF

abstract fun writeRTF(text: String, type: String? = definedExternally): Unit

writeText

abstract fun writeText(text: String, type: String? = definedExternally): Unit

Inherited Functions

addListener

open fun addListener(event: String, listener: Function<*>): EventEmitter

emit

open fun emit(event: String, vararg args: Any): Boolean

eventNames

open fun eventNames(): Array<String>

getMaxListeners

open fun getMaxListeners(): Number

listenerCount

open fun listenerCount(type: String): Number

listeners

open fun listeners(event: String): Array<Function<*>>

on

open fun on(event: String, listener: Function<*>): EventEmitter

once

open fun once(event: String, listener: Function<*>): EventEmitter

prependListener

open fun prependListener(event: String, listener: Function<*>): EventEmitter

prependOnceListener

open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter

removeAllListeners

open fun removeAllListeners(event: String? = definedExternally): EventEmitter

removeListener

open fun removeListener(event: String, listener: Function<*>): EventEmitter

setMaxListeners

open fun setMaxListeners(n: Number): EventEmitter

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.