LifecycleOwner
interface LifecycleOwner
androidx.lifecycle.LifecycleOwner |
Known Direct Subclasses
ComponentActivity, Fragment, LifecycleRegistryOwner, LifecycleService, NavBackStackEntry, OnBackPressedDispatcherOwner, ProcessLifecycleOwner, SavedStateRegistryOwner
|
Known Indirect Subclasses
AmbientModeSupport, AmbientModeSupport, AppCompatActivity, AppCompatActivity, AppCompatActivity, AppCompatDialogFragment, AppCompatDialogFragment, BaseLeanbackPreferenceFragmentCompat, BaseLeanbackPreferenceFragmentCompat, BaseSupportFragment, BaseSupportFragment, BrandedSupportFragment, and 58 others.
|
A class that has an Android lifecycle. These events can be used by custom components to handle lifecycle changes without implementing any code inside the Activity or the Fragment.
Summary
Public methods |
|
---|---|
abstract Lifecycle |
Returns the Lifecycle of the provider. |
Extension functions |
||||||
---|---|---|---|---|---|---|
From androidx.lifecycle
|
Extension properties |
||
---|---|---|
From androidx.lifecycle
|