WatchUiState
class WatchUiState
Describes the system state of the watch face ui.
use Watch Face Format instead
Summary
Public constructors |
|---|
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public functions |
|
|---|---|
open operator Boolean |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open Int |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
open String |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public properties |
|
|---|---|
Boolean |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Int |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public constructors
WatchUiState
WatchUiState(inAmbientMode: Boolean, interruptionFilter: Int)
| Parameters | |
|---|---|
inAmbientMode: Boolean |
Whether the device is is ambient mode or not. |
interruptionFilter: Int |
The interruption filter defines which notifications are allowed to interrupt the user. For watch faces this value is one of: |
Public functions
Public properties
inAmbientMode
val inAmbientMode: Boolean
Whether the device is is ambient mode or not.
interruptionFilter
val interruptionFilter: Int
The interruption filter defines which notifications are allowed to interrupt the user. For watch faces this value is one of: NotificationManager.INTERRUPTION_FILTER_ALARMS, NotificationManager.INTERRUPTION_FILTER_ALL, NotificationManager.INTERRUPTION_FILTER_NONE, NotificationManager.INTERRUPTION_FILTER_PRIORITY, NotificationManager.INTERRUPTION_FILTER_UNKNOWN. @see NotificationManager for more details.