Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.wear:wear:1.0.0-rc01

AmbientModeSupport.AmbientController

public final class AmbientModeSupport.AmbientController
extends Object

java.lang.Object
   ↳ androidx.wear.ambient.AmbientModeSupport.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 AmbientModeSupport.

Summary

Public methods

boolean isAmbient()
void setAmbientOffloadEnabled(boolean enabled)

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

Inherited methods

Public methods

isAmbient

added in version 1.0.0
public boolean isAmbient ()

Returns
boolean true if the activity is currently in ambient.

setAmbientOffloadEnabled

added in version 1.0.0
public void setAmbientOffloadEnabled (boolean enabled)

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

Parameters
enabled boolean