# AmbientMode.AmbientController

Artifact: [androidx.wear:wear](https://developer.android.com/jetpack/androidx/releases/wear) [View Source](https://cs.android.com/search?q=file:androidx/wear/ambient/AmbientMode.java+class:androidx.wear.ambient.AmbientMode.AmbientController) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

*** ** * ** ***


```
public final inner class AmbientMode.AmbientController
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Deprecated in Java

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 `https://developer.android.com/reference/android/app/Activity.html` to `https://developer.android.com/reference/androidx/wear/ambient/AmbientMode`.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `[isAmbient](https://developer.android.com/reference/androidx/wear/ambient/AmbientMode.AmbientController#isAmbient())()` **This method is deprecated.** Deprecated in Java |
| `void` | `[setAmbientOffloadEnabled](https://developer.android.com/reference/androidx/wear/ambient/AmbientMode.AmbientController#setAmbientOffloadEnabled(boolean))(boolean enabled)` **This method is deprecated.** Deprecated in Java |

## Public methods

### isAmbient

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public boolean [isAmbient](https://developer.android.com/reference/androidx/wear/ambient/AmbientMode.AmbientController#isAmbient())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

| Returns |
|---|---|
| `boolean` | `true` if the activity is currently in ambient. |

### setAmbientOffloadEnabled

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear#1.1.0)

```
public void [setAmbientOffloadEnabled](https://developer.android.com/reference/androidx/wear/ambient/AmbientMode.AmbientController#setAmbientOffloadEnabled(boolean))(boolean enabled)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

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