Manager
class Manager : PlayableManager, DefaultLifecycleObserver, LifecycleEventObserver, Comparable<Manager>
Content copied to clipboard
Manager is a component designed to manage a Fragment or an Activity which contains big Views like RecyclerView or ViewPager. Manager creates and manages Buckets for Views on demand. You only need to create Bucket for the View whose manages Videos. For example, your app has 2 RecyclerViews A and B, but only B contains Videos. You can ask the Manager to create and manage a Bucket for the RecyclerView B only. That way, the library doesn't need to observe and handle the changes of the RecyclerView A.
Creating a Manager can be done as below:
// Currently we are in the scope of a Fragment's onViewCreated.
val engine = // Get an Engine instance.
val manager = engine.register(this)
Content copied to clipboard
Parameters
memoryMode
The MemoryMode used in this Manager.
activeLifecycleState
the minimum Lifecycle.State where the Playback can be playing.
Types
Functions
Link copied to clipboard
Apply a specific VolumeInfo to all Playbacks in a Scope.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard