ActivityLifecycleSubscribable
Types
Link copied to clipboard
data class LifecycleManager(val activity: Activity?, val lifecycleOwner: LifecycleOwner, val fragmentManager: FragmentManager, val childFragmentManager: FragmentManager? = null)
A reflection of the manager of a lifecycle.
Properties
Link copied to clipboard
The current LifecycleManager subscribed to this LifecycleSubscribable
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, fragmentManager: FragmentManager)
fun ActivityLifecycleSubscribable.subscribe(activity: Activity?, owner: LifecycleOwner, parentFragmentManager: FragmentManager, childFragmentManager: FragmentManager)
Subscribes a LifecycleOwner to this ActivityLifecycleSubscribable.
Link copied to clipboard
Unsubscribes the current LifecycleManager from this LifecycleSubscribable. Called on Lifecycle.Event.ON_DESTROY