Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.support.wear.ambient\n\nadded in [version 27.1.0](/topic/libraries/support-library/revisions) \n\nandroid.support.wear.ambient\n============================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\nInterfaces\n----------\n\n|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| [AmbientMode.AmbientCallbackProvider](/reference/android/support/wear/ambient/AmbientMode.AmbientCallbackProvider) | Interface for any [Activity](https://developer.android.com/reference/android/app/Activity.html) that wishes to implement Ambient Mode. |\n| [AmbientModeSupport.AmbientCallbackProvider](/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallbackProvider) | Interface for any [Activity](https://developer.android.com/reference/android/app/Activity.html) that wishes to implement Ambient Mode. |\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AmbientMode](/reference/android/support/wear/ambient/AmbientMode) | *This class was deprecated in API level 27.1.0. please use [AmbientModeSupport](/reference/android/support/wear/ambient/AmbientModeSupport) instead.* |\n| [AmbientMode.AmbientCallback](/reference/android/support/wear/ambient/AmbientMode.AmbientCallback) | Callback to receive ambient mode state changes. |\n| [AmbientMode.AmbientController](/reference/android/support/wear/ambient/AmbientMode.AmbientController) | A class for interacting with the ambient mode on a wearable device. |\n| [AmbientModeSupport](/reference/android/support/wear/ambient/AmbientModeSupport) | Use this as a headless Fragment to add ambient support to an Activity on Wearable devices. |\n| [AmbientModeSupport.AmbientCallback](/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallback) | Callback to receive ambient mode state changes. |\n| [AmbientModeSupport.AmbientController](/reference/android/support/wear/ambient/AmbientModeSupport.AmbientController) | A class for interacting with the ambient mode on a wearable device. |\n\n-\n\n Interfaces\n ----------\n\n - [AmbientMode.AmbientCallbackProvider](/reference/android/support/wear/ambient/AmbientMode.AmbientCallbackProvider)\n - [AmbientModeSupport.AmbientCallbackProvider](/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallbackProvider)\n-\n\n Classes\n -------\n\n - [AmbientMode](/reference/android/support/wear/ambient/AmbientMode)\n - [AmbientMode.AmbientCallback](/reference/android/support/wear/ambient/AmbientMode.AmbientCallback)\n - [AmbientMode.AmbientController](/reference/android/support/wear/ambient/AmbientMode.AmbientController)\n - [AmbientModeSupport](/reference/android/support/wear/ambient/AmbientModeSupport)\n - [AmbientModeSupport.AmbientCallback](/reference/android/support/wear/ambient/AmbientModeSupport.AmbientCallback)\n - [AmbientModeSupport.AmbientController](/reference/android/support/wear/ambient/AmbientModeSupport.AmbientController)"]]