ActivityLifecycleSubscribable
A LifecycleSubscribable bound to an Android LifecycleManager. Implementations typically grab the Activity reference out of manager to call Activity-scoped APIs (in-app review prompts, finding SurfaceViews in the view hierarchy, …).
Inheritors
Types
Reflection of the manager of a lifecycle.
Properties
The current LifecycleManager subscribed to this subscribable.
Functions
Subscribes a LifecycleManager. Typically called on Lifecycle.Event.ON_CREATE.
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.
Subscribe a LifecycleOwner with an inner FragmentManager.
Unsubscribes the current LifecycleManager. Typically called on Lifecycle.Event.ON_DESTROY.