kvision / pl.treksoft.kvision.cordova / Screen

Screen

(js) object Screen

Main object for Cordova screen.

Types

(js)

Orientation

Screen orientations

enum class Orientation

Functions

(js)

addOrientationChangeListener

Add listeners for screen orientation change Cordova events.

fun addOrientationChangeListener(listener: (Orientation) -> Unit): Unit
(js)

getOrientation

Get screen orientation.

fun getOrientation(): Orientation
(js)

lock

Lock screen orientation.

fun lock(orientation: Orientation): Unit
(js)

unlock

Unlock screen orientation.

fun unlock(): Unit