AmbientLifecycleObserver

Added in 1.3.0

interface AmbientLifecycleObserver : DefaultLifecycleObserver


Interface for LifecycleObservers which are used to add ambient mode support to activities on Wearable devices.

This interface can be implemented, or faked out, to allow for testing activities which use ambient support.

Summary

Nested types

Details about ambient mode support on the current device, passed to AmbientLifecycleCallback.onEnterAmbient.

Callback to receive ambient mode state changes.

Public properties

Boolean

Public properties

isAmbient

Added in 1.3.0
val isAmbientBoolean
Returns
Boolean

{@code true} if the activity is currently in ambient.

Resources for reporting and resolving issues with the Android Gradle plugin.

Updated Apr 12, 2023

Connectivity describes how Android apps connect to and use network connections, including WiFi and Bluetooth.

Updated Oct 17, 2024

In this codelab, you’ll learn how to use Android Studio’s Layout Editor to build your views using ConstraintLayout.

Updated Dec 9, 2024