AmbientState

sealed interface AmbientState

Represent Ambient as updates, with the state and time of change. This is necessary to ensure that when the system provides a (typically) 1min-frequency callback to onUpdateAmbient, the developer may wish to update composables, but the state hasn't changed.

Inheritors

Types

Link copied to clipboard
data class Ambient(val burnInProtectionRequired: Boolean = false, val deviceHasLowBitAmbient: Boolean = false, val updateTimeMillis: Long = System.currentTimeMillis()) : AmbientState

Represents the state of a device, that the app is in ambient mode and not actively updating the display.

Link copied to clipboard
data object Inactive : AmbientState

Represents the state of a device, that the app isn't currently monitoring the ambient state.

Link copied to clipboard

Represents that the state of the device is is interactive, and the app is open and being used.

Properties

Link copied to clipboard
abstract val displayName: String
Link copied to clipboard
open val isAmbient: Boolean
Link copied to clipboard