-
@Immutable() public interface AmbientStateRepresent 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 classAmbientState.InteractiveRepresents 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 classAmbientState.AmbientRepresents 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 classAmbientState.InactiveRepresents the state of a device, that the app isn't currently monitoring the ambient state.
-
Method Summary
Modifier and Type Method Description abstract StringgetDisplayName()BooleangetIsInteractive()BooleangetIsAmbient()-
-
Method Detail
-
getDisplayName
abstract String getDisplayName()
-
getIsInteractive
Boolean getIsInteractive()
-
getIsAmbient
Boolean getIsAmbient()
-
-
-
-