Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.
added in version 27.1.0
belongs to Maven artifact


public final class AmbientModeSupport.AmbientController
extends Object


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.


Public methods

boolean isAmbient()

Inherited methods

From class java.lang.Object

Public methods


added in version 27.1.0
boolean isAmbient ()

boolean true if the activity is currently in ambient.