# AmbientMode.AmbientController

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:wear:28.0.0-alpha1  
Summary:[Methods](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientController#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientController#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientController#)  

# AmbientMode.AmbientController

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public

final

class
AmbientMode.AmbientController
`  
`

extends Object


``


`

|---|------------------------------------------------------------|
| java.lang.Object                                              ||
| ↳ | android.support.wear.ambient.AmbientMode.AmbientController |

<br />

*** ** * ** ***

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](https://developer.android.com/reference/android/app/Activity.html)to[AmbientMode](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode).

## Summary

|                                                               ### Public methods                                                                ||
|------------|-------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean` | ` `[isAmbient](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientController#isAmbient())`() ` |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientController#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Public methods

### isAmbient

added in[version 27.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isAmbient ()
```

<br />

<br />

|                             Returns                              ||
|-----------|-------------------------------------------------------|
| `boolean` | `true`if the activity is currently in ambient. <br /> |

-

  ## Interfaces

  - [AmbientMode.AmbientCallbackProvider](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientCallbackProvider)
  - [AmbientModeSupport.AmbientCallbackProvider](https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallbackProvider)
-

  ## Classes

  - [AmbientMode](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode)
  - [AmbientMode.AmbientCallback](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientCallback)
  - [AmbientMode.AmbientController](https://developer.android.com/reference/android/support/wear/ambient/AmbientMode.AmbientController)
  - [AmbientModeSupport](https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport)
  - [AmbientModeSupport.AmbientCallback](https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallback)
  - [AmbientModeSupport.AmbientController](https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientController)