Package 

Interface AmbientState


  • @Immutable() 
    public 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class AmbientState.Interactive

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

      This object is used to track whether the application is currently being interacted with by the user.

      public final class AmbientState.Ambient

      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.

      public class AmbientState.Inactive

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