-
Notifications
You must be signed in to change notification settings - Fork 109
Description
AmbientState.Interactive is associated with the onExitAmbient() event:
Line 101 in 388eb02
| override fun onExitAmbient() { |
The system calls this method when the app is being transitioned from ambient to interactive mode, but also when the app is being transitioned from ambient mode to the watch face. Since horologist translates this to its own AmbientState.Interactive state, apps get passed this state when the system is returning the user to the watch face.
This is misleading, and potentially incorrect, especially since the javadoc explains that this state represents the app being open and being used:
Line 32 in 388eb02
| * Represents that the state of the device is is interactive, and the app is open and being used. |
AmbientState.Inactive might be a better choice for the "going to watch face" case, although I can't see an easy way to provide that state.