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 Type
    Method
    Description
    Returns the Lifecycle of the provider.
  • Method Details

    • getLifecycle

      @Nonnull Lifecycle getLifecycle()
      Returns the Lifecycle of the provider.
      Returns:
      The lifecycle of the provider.