Ambient

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.

This class holds information about the ambient display properties, such as whether burn-in protection is required, if the device has low bit ambient display, and the last time the ambient state was updated.

See also

Constructors

Link copied to clipboard
constructor(burnInProtectionRequired: Boolean = false, deviceHasLowBitAmbient: Boolean = false, updateTimeMillis: Long = System.currentTimeMillis())

Properties

Link copied to clipboard

Indicates if burn-in protection is necessary for the device. Defaults to false.

Link copied to clipboard

Specifies if the device has a low bit ambient display. Defaults to false.

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

The timestamp in milliseconds when the ambient state was last updated. Defaults to the current system time.