kvision / pl.treksoft.kvision.electron / SystemPreferences

SystemPreferences

(js) interface SystemPreferences : EventEmitter

Functions

(js)

addListener

abstract fun addListener(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
abstract fun addListener(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun addListener(event: String, listener: (event: Event, invertedColorScheme: Boolean) -> Unit): SystemPreferences
(js)

getAccentColor

abstract fun getAccentColor(): String
(js)

getColor

abstract fun getColor(color: dynamic): String
(js)

getUserDefault

abstract fun getUserDefault(key: String, type: String): Any
(js)

isAeroGlassEnabled

abstract fun isAeroGlassEnabled(): Boolean
(js)

isDarkMode

abstract fun isDarkMode(): Boolean
(js)

isInvertedColorScheme

abstract fun isInvertedColorScheme(): Boolean
(js)

isSwipeTrackingFromScrollEventsEnabled

abstract fun isSwipeTrackingFromScrollEventsEnabled(): Boolean
(js)

on

abstract fun on(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
abstract fun on(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun on(event: String, listener: (event: Event, invertedColorScheme: Boolean) -> Unit): SystemPreferences
(js)

once

abstract fun once(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
abstract fun once(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun once(event: String, listener: (event: Event, invertedColorScheme: Boolean) -> Unit): SystemPreferences
(js)

postLocalNotification

abstract fun postLocalNotification(event: String, userInfo: Any): Unit
(js)

postNotification

abstract fun postNotification(event: String, userInfo: Any): Unit
(js)

registerDefaults

abstract fun registerDefaults(defaults: Any): Unit
(js)

removeListener

abstract fun removeListener(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
abstract fun removeListener(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun removeListener(event: String, listener: (event: Event, invertedColorScheme: Boolean) -> Unit): SystemPreferences
(js)

removeUserDefault

abstract fun removeUserDefault(key: String): Unit
(js)

setUserDefault

abstract fun setUserDefault(key: String, type: String, value: String): Unit
(js)

subscribeLocalNotification

abstract fun subscribeLocalNotification(event: String, callback: (event: String, userInfo: Any) -> Unit): Unit
(js)

subscribeNotification

abstract fun subscribeNotification(event: String, callback: (event: String, userInfo: Any) -> Unit): Unit
(js)

unsubscribeLocalNotification

abstract fun unsubscribeLocalNotification(id: Number): Unit
(js)

unsubscribeNotification

abstract fun unsubscribeNotification(id: Number): Unit