AmbientMode.AmbientController

Added in 1.1.0
Deprecated in 1.1.0

public final class AmbientMode.AmbientController


A class for interacting with the ambient mode on a wearable device. This class can be used to query the current state of ambient mode. An instance of this class is returned to the user when they attach their Activity to AmbientMode.

Summary

Public methods

boolean
void
setAmbientOffloadEnabled(boolean enabled)

Sets whether this activity is currently in a state that supports ambient offload mode.

Public methods

isAmbient

Added in 1.1.0
Deprecated in 1.1.0
public boolean isAmbient()
Returns
boolean

true if the activity is currently in ambient.

setAmbientOffloadEnabled

Added in 1.1.0
Deprecated in 1.1.0
public void setAmbientOffloadEnabled(boolean enabled)

Sets whether this activity is currently in a state that supports ambient offload mode.