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

# AmbientModeSupport.AmbientCallbackProvider

| 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
static


interface
AmbientModeSupport.AmbientCallbackProvider
`


`


`

|---|
| android.support.wear.ambient.AmbientModeSupport.AmbientCallbackProvider |

<br />

*** ** * ** ***

Interface for any `https://developer.android.com/reference/android/app/Activity.html` that wishes to implement Ambient Mode. Use the
`https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallbackProvider#getAmbientCallback()` method to return and `https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallback` which can be used
to bind the `https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport` to the instantiation of this interface.


    return new AmbientMode.AmbientCallback() {
         public void onEnterAmbient(Bundle ambientDetails) {...}
         public void onExitAmbient(Bundle ambientDetails) {...}
      }
     
<br />

## Summary

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallback` | ` https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallbackProvider#getAmbientCallback()() ` |

## Public methods

### getAmbientCallback

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

```
AmbientModeSupport.AmbientCallback getAmbientCallback ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallback` | the `https://developer.android.com/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallback` to be used by this class to communicate with the entity interested in ambient events. <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)