Package-level declarations

Types

Link copied to clipboard

This interface can be provided to a BaseLifecycleViewModel to bind to platform specific lifecycle. Extend this on classes that need to have some setup during lifecycle events.

Functions

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)