Class

AmbientMode

Represents the current ambient mode of the device.

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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: