kvision / pl.treksoft.kvision.cordova / StatusBar

StatusBar

object StatusBar

Main object for Cordova status bar.

Functions

addTapListener

fun addTapListener(listener: () -> Unit): Unit

Add listeners for the status bar tap event.

hide

fun hide(): Unit

Hide status bar.

isVisible

suspend fun isVisible(): Boolean

Returns if the status bar is visible.

overlaysWebView

fun overlaysWebView(overlays: Boolean): Unit

Set overlay.

setBackgroundColor

fun setBackgroundColor(color: Int): Unit

Sets the background color of the status bar by a hexadecimal Int.

setBackgroundColorByHexString

fun setBackgroundColorByHexString(color: String): Unit

Sets the background color of the status bar by a hex string.

show

fun show(): Unit

Show status bar.

styleBlackOpaque

fun styleBlackOpaque(): Unit

Use the blackOpaque status bar (light text, for dark backgrounds).

styleBlackTranslucent

fun styleBlackTranslucent(): Unit

Use the blackTranslucent status bar (light text, for dark backgrounds).

styleDefault

fun styleDefault(): Unit

Use the default status bar (dark text, for light backgrounds).

styleLightContent

fun styleLightContent(): Unit

Use the lightContent status bar (light text, for dark backgrounds).

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.