Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The current LifecycleManager subscribed to this LifecycleSubscribable

Link copied to clipboard

A StateFlow of the current manager

Functions

Link copied to clipboard

Subscribes a LifecycleManager to this LifecycleSubscribable. Called on Lifecycle.Event.ON_CREATE

Link copied to clipboard

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.

fun ActivityLifecycleSubscribable.subscribe(activity: Activity?, owner: LifecycleOwner, parentFragmentManager: FragmentManager, childFragmentManager: FragmentManager)
Link copied to clipboard
open override fun unsubscribe()

Unsubscribes the current LifecycleManager from this LifecycleSubscribable. Called on Lifecycle.Event.ON_DESTROY