WatchUiState

public final class WatchUiState


Describes the system state of the watch face ui.

Summary

Public fields

final boolean

Whether the device is is ambient mode or not.

final int

The interruption filter defines which notifications are allowed to interrupt the user.

Public constructors

WatchUiState(
    boolean inAmbientMode,
    @InterruptionFilter int interruptionFilter
)

Public fields

inAmbientMode

@NonNull
public final boolean inAmbientMode

Whether the device is is ambient mode or not.

interruptionFilter

@NonNull
public final int interruptionFilter

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.

Public constructors

WatchUiState

public final WatchUiState(
    boolean inAmbientMode,
    @InterruptionFilter int interruptionFilter
)
Parameters
boolean inAmbientMode

Whether the device is is ambient mode or not.

@InterruptionFilter int interruptionFilter

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.