Source set: Android
public abstract class AmbientMode private constructor()
Represents the current ambient mode of the device.
Example of using AmbientMode in a simple use case:
Members
Interactive
Source set: Android
public object Interactive : AmbientMode()
Represents the mode when the user is actively interacting with the device.
Ambient
Source set: Android
public class Ambient(
public val isBurnInProtectionRequired: Boolean,
public val isLowBitAmbientSupported: Boolean,
) : AmbientMode()
Represents that device is in the ambient mode. In this mode, the app is typically updated at infrequent intervals (e.g., once per minute).
Functions
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int