belongs to Maven artifact com.android.support:wear:28.0.0-alpha1
AmbientMode.AmbientCallback
public
static
abstract
class
AmbientMode.AmbientCallback
extends Object
java.lang.Object | |
↳ | android.support.wear.ambient.AmbientMode.AmbientCallback |
Callback to receive ambient mode state changes. It must be used by all users of AmbientMode.
Summary
Public constructors | |
---|---|
AmbientMode.AmbientCallback()
|
Public methods | |
---|---|
void
|
onEnterAmbient(Bundle ambientDetails)
Called when an activity is entering ambient mode. |
void
|
onExitAmbient()
Called when an activity should exit ambient mode. |
void
|
onUpdateAmbient()
Called when the system is updating the display for ambient mode. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
Public methods
onEnterAmbient
void onEnterAmbient (Bundle ambientDetails)
Called when an activity is entering ambient mode. This event is sent while an activity is
running (after onResume, before onPause). All drawing should complete by the conclusion
of this method. Note that invalidate()
calls will be executed before resuming
lower-power mode.
Parameters | |
---|---|
ambientDetails |
Bundle : bundle containing information about the display being used.
It includes information about low-bit color and burn-in protection.
|
onExitAmbient
void onExitAmbient ()
Called when an activity should exit ambient mode. This event is sent while an activity is running (after onResume, before onPause).
onUpdateAmbient
void onUpdateAmbient ()
Called when the system is updating the display for ambient mode. Activities may use this opportunity to update or invalidate views.