DefaultActivityLifecycleSubscribable

Default implementation that just stores the current manager.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The current LifecycleManager subscribed to this subscribable.

Functions

Link copied to clipboard

Subscribes a LifecycleManager. Typically called on Lifecycle.Event.ON_CREATE.

Link copied to clipboard

Convenience: subscribe an AppCompatActivity using its default LifecycleOwner and FragmentManager.

Convenience: subscribe a Fragment using its default LifecycleOwner and FragmentManagers.

Subscribe a LifecycleOwner without inner fragment manager.

fun ActivityLifecycleSubscribable.subscribe(activity: Activity?, owner: LifecycleOwner, parentFragmentManager: FragmentManager, childFragmentManager: FragmentManager)

Subscribe a LifecycleOwner with an inner FragmentManager.

Link copied to clipboard
open override fun unsubscribe()

Unsubscribes the current LifecycleManager. Typically called on Lifecycle.Event.ON_DESTROY.