WatchUiState


public final class WatchUiState


Describes the system state of the watch face ui.

use Watch Face Format instead

Summary

Public constructors

WatchUiState(boolean inAmbientMode, int interruptionFilter)

This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public methods

boolean
equals(Object other)

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

Added in 1.0.0
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
public final boolean inAmbientMode()

Whether the device is is ambient mode or not.

toString

public @NonNull String toString()