SystemPreferences

external interface SystemPreferences : EventEmitter

Functions

addListener
Link copied to clipboard
js
abstract fun addListener(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun addListener(event: String, listener: (event: Event, highContrastColorScheme: Boolean) -> Unit): SystemPreferences
abstract fun addListener(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
open fun addListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun addListener(event: String, listener: (args: Any) -> Unit): EventEmitter
askForMediaAccess
Link copied to clipboard
js
abstract fun askForMediaAccess(mediaType: String): <ERROR CLASS><Boolean>
canPromptTouchID
Link copied to clipboard
js
abstract fun canPromptTouchID(): Boolean
emit
Link copied to clipboard
js
open fun emit(event: Any, vararg args: Any): Boolean
open fun emit(event: String, vararg args: Any): Boolean
eventNames
Link copied to clipboard
js
open fun eventNames(): Array<dynamic>
getAccentColor
Link copied to clipboard
js
abstract fun getAccentColor(): String
getAnimationSettings
Link copied to clipboard
js
abstract fun getAnimationSettings(): AnimationSettings
getAppLevelAppearance
Link copied to clipboard
js
abstract fun getAppLevelAppearance(): String
getColor
Link copied to clipboard
js
abstract fun getColor(color: String): String
getEffectiveAppearance
Link copied to clipboard
js
abstract fun getEffectiveAppearance(): String
getMaxListeners
Link copied to clipboard
js
open fun getMaxListeners(): Number
getMediaAccessStatus
Link copied to clipboard
js
abstract fun getMediaAccessStatus(mediaType: String): String
getSystemColor
Link copied to clipboard
js
abstract fun getSystemColor(color: String): String
getUserDefault
Link copied to clipboard
js
abstract fun getUserDefault(key: String, type: String): Any
isAeroGlassEnabled
Link copied to clipboard
js
abstract fun isAeroGlassEnabled(): Boolean
isDarkMode
Link copied to clipboard
js
abstract fun isDarkMode(): Boolean
isHighContrastColorScheme
Link copied to clipboard
js
abstract fun isHighContrastColorScheme(): Boolean
isInvertedColorScheme
Link copied to clipboard
js
abstract fun isInvertedColorScheme(): Boolean
isSwipeTrackingFromScrollEventsEnabled
Link copied to clipboard
js
abstract fun isSwipeTrackingFromScrollEventsEnabled(): Boolean
isTrustedAccessibilityClient
Link copied to clipboard
js
abstract fun isTrustedAccessibilityClient(prompt: Boolean): Boolean
listenerCount
Link copied to clipboard
js
open fun listenerCount(type: Any): Number
open fun listenerCount(type: String): Number
listeners
Link copied to clipboard
js
open fun listeners(event: Any): Array<Function<*>>
open fun listeners(event: String): Array<Function<*>>
off
Link copied to clipboard
js
open fun off(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun off(event: String, listener: (args: Any) -> Unit): EventEmitter
on
Link copied to clipboard
js
abstract fun on(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun on(event: String, listener: (event: Event, highContrastColorScheme: Boolean) -> Unit): SystemPreferences
abstract fun on(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
open fun on(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun on(event: String, listener: (args: Any) -> Unit): EventEmitter
once
Link copied to clipboard
js
abstract fun once(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun once(event: String, listener: (event: Event, highContrastColorScheme: Boolean) -> Unit): SystemPreferences
abstract fun once(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
open fun once(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun once(event: String, listener: (args: Any) -> Unit): EventEmitter
postLocalNotification
Link copied to clipboard
js
abstract fun postLocalNotification(event: String, userInfo: Record<String, Any>)
postNotification
Link copied to clipboard
js
abstract fun postNotification(event: String, userInfo: Record<String, Any>, deliverImmediately: Boolean = definedExternally)
postWorkspaceNotification
Link copied to clipboard
js
abstract fun postWorkspaceNotification(event: String, userInfo: Record<String, Any>)
prependListener
Link copied to clipboard
js
open fun prependListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun prependListener(event: String, listener: (args: Any) -> Unit): EventEmitter
prependOnceListener
Link copied to clipboard
js
open fun prependOnceListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun prependOnceListener(event: String, listener: (args: Any) -> Unit): EventEmitter
promptTouchID
Link copied to clipboard
js
abstract fun promptTouchID(reason: String): <ERROR CLASS><Unit>
rawListeners
Link copied to clipboard
js
open fun rawListeners(event: Any): Array<Function<*>>
open fun rawListeners(event: String): Array<Function<*>>
registerDefaults
Link copied to clipboard
js
abstract fun registerDefaults(defaults: Record<String, dynamic>)
removeAllListeners
Link copied to clipboard
js
open fun removeAllListeners(event: Any = definedExternally): EventEmitter
open fun removeAllListeners(event: String = definedExternally): EventEmitter
removeListener
Link copied to clipboard
js
abstract fun removeListener(event: String, listener: (event: Event) -> Unit): SystemPreferences
abstract fun removeListener(event: String, listener: (event: Event, highContrastColorScheme: Boolean) -> Unit): SystemPreferences
abstract fun removeListener(event: String, listener: (event: Event, newColor: String) -> Unit): SystemPreferences
open fun removeListener(event: Any, listener: (args: Any) -> Unit): EventEmitter
open fun removeListener(event: String, listener: (args: Any) -> Unit): EventEmitter
removeUserDefault
Link copied to clipboard
js
abstract fun removeUserDefault(key: String)
setAppLevelAppearance
Link copied to clipboard
js
abstract fun setAppLevelAppearance(appearance: String)
setMaxListeners
Link copied to clipboard
js
open fun setMaxListeners(n: Number): EventEmitter
setUserDefault
Link copied to clipboard
js
abstract fun setUserDefault(key: String, type: String, value: String)
subscribeLocalNotification
Link copied to clipboard
js
abstract fun subscribeLocalNotification(event: String, callback: (event: String, userInfo: Record<String, Any>, obj: String) -> Unit): Number
subscribeNotification
Link copied to clipboard
js
abstract fun subscribeNotification(event: String, callback: (event: String, userInfo: Record<String, Any>, obj: String) -> Unit): Number
subscribeWorkspaceNotification
Link copied to clipboard
js
abstract fun subscribeWorkspaceNotification(event: String, callback: (event: String, userInfo: Record<String, Any>, obj: String) -> Unit)
unsubscribeLocalNotification
Link copied to clipboard
js
abstract fun unsubscribeLocalNotification(id: Number)
unsubscribeNotification
Link copied to clipboard
js
abstract fun unsubscribeNotification(id: Number)
unsubscribeWorkspaceNotification
Link copied to clipboard
js
abstract fun unsubscribeWorkspaceNotification(id: Number)

Properties

appLevelAppearance
Link copied to clipboard
js
abstract var appLevelAppearance: String
effectiveAppearance
Link copied to clipboard
js
abstract var effectiveAppearance: String