WatchUiState
public final class WatchUiState
Describes the system state of the watch face ui.
use Watch Face Format instead
Summary
Public constructors |
|---|
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public methods |
|
|---|---|
boolean |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
final int |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
int |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
final boolean |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
@NonNull String |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public constructors
WatchUiState
public WatchUiState(boolean inAmbientMode, int interruptionFilter)| Parameters | |
|---|---|
boolean inAmbientMode |
Whether the device is is ambient mode or not. |
int interruptionFilter |
The interruption filter defines which notifications are allowed to interrupt the user. For watch faces this value is one of: |
Public methods
getInterruptionFilter
public final int getInterruptionFilter()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.
inAmbientMode
public final boolean inAmbientMode()Whether the device is is ambient mode or not.