public final class

AmbientMode.AmbientController

extends java.lang.Object

 java.lang.Object

↳androidx.wear.ambient.AmbientMode.AmbientController

Overview

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 to AmbientMode.

Summary

Methods
public booleanisAmbient()

public voidsetAmbientOffloadEnabled(boolean enabled)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public boolean isAmbient()

Returns:

true if the activity is currently in ambient.

public void setAmbientOffloadEnabled(boolean enabled)

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