kvision / pl.treksoft.kvision.cordova / Browser

Browser

external class Browser

InAppBrowser reference object.

Constructors

<init>

Browser()

InAppBrowser reference object.

Functions

addEventListener

fun addEventListener(eventname: String, callback: (InAppBrowserEvent) -> Unit): Unit

close

fun close(): Unit

executeScript

fun executeScript(details: dynamic, callback: (dynamic) -> Unit = definedExternally): Unit

hide

fun hide(): Unit

insertCSS

fun insertCSS(details: dynamic, callback: () -> Unit = definedExternally): Unit

removeEventListener

fun removeEventListener(eventname: String, callback: (InAppBrowserEvent) -> Unit): Unit

show

fun show(): Unit

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.