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.