Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Default implementation of ActivityLifecycleSubscribable
Link copied to clipboard
A ActivityLifecycleSubscribable that provides ActivityLifecycleSubscribable.manager as a StateFlow
Link copied to clipboard
interface LifecycleSubscribable
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, fragmentManager: FragmentManager)
fun ActivityLifecycleSubscribable.subscribe(activity: Activity?, owner: LifecycleOwner, parentFragmentManager: FragmentManager, childFragmentManager: FragmentManager)
Subscribes a LifecycleOwner to this ActivityLifecycleSubscribable.