CompositionLifecycleObserver

interface CompositionLifecycleObserver
androidx.compose.CompositionLifecycleObserver

Instances of classes implementing this interface are notified when they are initially used during composition and when they are no longer being used.

Summary

Public methods

abstract Unit

Called when the instance is used in composition.

abstract Unit

Called when the instance is no longer used in the composition.

Public methods

onEnter

abstract fun onEnter(): Unit

Called when the instance is used in composition.

onLeave

abstract fun onLeave(): Unit

Called when the instance is no longer used in the composition.