WatchUiState


class WatchUiState


Describes the system state of the watch face ui.

use Watch Face Format instead

Summary

Public constructors

WatchUiState(inAmbientMode: Boolean, interruptionFilter: Int)

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

Public functions

open operator Boolean
equals(other: Any?)

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

Added in 1.0.0
Deprecated in 1.3.0-alpha06
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: 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 functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

inAmbientMode

Added in 1.2.0
Deprecated in 1.3.0-alpha06
val inAmbientModeBoolean

Whether the device is is ambient mode or not.

interruptionFilter

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val interruptionFilterInt

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.