subscribe
Convenience method to subscribe an AppCompatActivity to this ActivityLifecycleSubscribable using its default LifecycleOwner and FragmentManager.
Convenience method to subscribe a Fragment to this ActivityLifecycleSubscribable using its default LifecycleOwner and FragmentManagers.
Subscribes a LifecycleOwner to this ActivityLifecycleSubscribable.
Parameters
The Activity associated with the lifecycle or null
if none exist.
The LifecycleOwner owning the lifecycle.
The FragmentManager attached to the lifecycle.
Subscribes a LifecycleOwner to this ActivityLifecycleSubscribable.
Parameters
The Activity associated with the lifecycle or null
if none exist.
The LifecycleOwner owning the lifecycle.
The FragmentManager attached to the lifecycle.
Optional FragmentManager that hosts androidx.fragment.app.Fragment with the Fragment owning the lifecycle.