public final class WatchUiState


Describes the system state of the watch face ui.

Summary

Public constructors

WatchUiState(boolean inAmbientMode, int interruptionFilter)

Public methods

boolean
equals(Object other)
final int

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

int
final boolean

Whether the device is is ambient mode or not.

@NonNull String

Public constructors

WatchUiState

Added in 1.0.0
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: 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 methods

equals

public boolean equals(Object other)

getInterruptionFilter

Added in 1.0.0
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.

hashCode

public int hashCode()

inAmbientMode

Added in 1.2.0
public final boolean inAmbientMode()

Whether the device is is ambient mode or not.

toString

public @NonNull String toString()