kvision / pl.treksoft.kvision.electron / Shell

Shell

external interface Shell

Functions

beep

abstract fun beep(): Unit

moveItemToTrash

abstract fun moveItemToTrash(fullPath: String): Boolean

openExternal

abstract fun openExternal(url: String, options: OpenExternalOptions? = definedExternally, callback: ((Error) -> Unit)? = definedExternally): Boolean

openItem

abstract fun openItem(fullPath: String): Boolean

readShortcutLink

abstract fun readShortcutLink(shortcutPath: String): ShortcutDetails

showItemInFolder

abstract fun showItemInFolder(fullPath: String): Boolean

writeShortcutLink

abstract fun writeShortcutLink(shortcutPath: String, operation: String, options: ShortcutDetails): Boolean
abstract fun writeShortcutLink(shortcutPath: String, operation: String, options: ShortcutDetails): Boolean
abstract fun writeShortcutLink(shortcutPath: String, operation: String, options: ShortcutDetails): Boolean
abstract fun writeShortcutLink(shortcutPath: String, options: ShortcutDetails): Boolean

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.