LifecycleManager

constructor(activity: Activity?, lifecycleOwner: LifecycleOwner, fragmentManager: FragmentManager, childFragmentManager: FragmentManager? = null)

Parameters

activity

The Activity managing the lifecycle if available.

lifecycleOwner

The LifecycleOwner owning the lifecycle.

fragmentManager

The FragmentManager attached to the lifecycle.

childFragmentManager

Optional FragmentManager that hosts androidx.fragment.app.Fragment with the Fragment owning the lifecycle.