Android 12 Developer Preview is here! Try it out, and give us your feedback!

SystemState

class SystemState
kotlin.Any
   ↳ androidx.wear.watchface.client.SystemState

Describes the system state of the watch face.

Summary

Public constructors
<init>(inAmbientMode: Boolean, interruptionFilter: Int)

Describes the system state of the watch face.

Properties
Boolean

Whether the device is is ambient mode or not.

Int

The current user interruption settings.

Public constructors

<init>

SystemState(
    inAmbientMode: Boolean,
    interruptionFilter: Int)

Describes the system state of the watch face.

Properties

inAmbientMode

val inAmbientMode: Boolean

Whether the device is is ambient mode or not.

interruptionFilter

val interruptionFilter: Int

The current user interruption settings.