Package-level declarations

Types

Link copied to clipboard

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, …).

Link copied to clipboard

Default implementation that just stores the current manager.

Default implementation storing the current manager.

Link copied to clipboard

Default implementation storing the current manager.

Link copied to clipboard

Marker for any object that wants to bind to a platform host's lifecycle. Implementations live in platform-specific source sets (ActivityLifecycleSubscribable on Android, ViewControllerLifecycleSubscribable on iOS, WindowLifecycleSubscribable on macOS) and own a manager property exposing the host handle (Activity, UIViewController, NSWindow).

Link copied to clipboard

A LifecycleSubscribable bound to an iOS UIViewController. Implementations grab the controller off manager to call presentation APIs (e.g. presenting media, modals, in-app pickers) that need an originating view controller.

Link copied to clipboard

A LifecycleSubscribable bound to a macOS NSWindow. Implementations grab the window off manager to find native AppKit views in its content view (e.g. an AVPlayerView host for the native-AppKit media path) or to anchor window-modal sheets.

Functions

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.

fun ViewControllerLifecycleSubscribable.subscribe(viewController: UIViewController)

Subscribe with a raw UIViewController.

Subscribe with a raw NSWindow.