Interface | Description |
---|---|
LifecycleListener |
Listener for activity/fragment lifecycle events.
|
Class | Description |
---|---|
FlowplayerLifecycleObserver |
Fragments and Activities in Support Library 26.1.0 and later implement the androidx.lifecycle.LifecycleOwner.
Fragments/activities that fall into this category and use
class FlowplayerView instead of either class FlowplayerFragment
or class FlowplayerSupportFragment , can easily bind the player to their lifecycle by calling FlowplayerLifecycleObserver.registerLifecycle .
This way the player will automatically listen to the activity's/fragment's lifecycle methods without having to manually call the player's lifecycle methods (onPause, onResume, etc). |