Package icyllis.modernui.lifecycle
Interface LifecycleOwner
- All Known Subinterfaces:
OnBackPressedDispatcherOwner
- All Known Implementing Classes:
Fragment
,ModernUI
,TestFragment
,TestFragment.FragmentA
,TestFragment.FragmentB
public interface LifecycleOwner
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Lifecycle of the provider.
-
Method Details
-
getLifecycle
Returns the Lifecycle of the provider.- Returns:
- The lifecycle of the provider.
-