Package com.castlabs.android.player
Interface PlayerViewLifecycleDelegate.LifecycleListener
- All Known Implementing Classes:
MultiControllerPlaylist,PlaylistController
- Enclosing class:
PlayerViewLifecycleDelegate
public static interface PlayerViewLifecycleDelegate.LifecycleListener
Callback to receive delegated Lifecycle events.
Exposes hook points to add extra logic dependant on the lifecycle.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBeforeRelease(boolean backgroundPlayback) Called before thePlayerViewLifecycleDelegate.releasePlayer(boolean)method starts.voidCalled after thePlayerViewLifecycleDelegate.destroy()method has completed.voidonPostRelease(boolean backgroundPlayback) Called after thePlayerViewLifecycleDelegate.releasePlayer(boolean)method has completed.voidonPostResume(PlayerController playerController) Called after thePlayerViewLifecycleDelegate.resume()method has completed.voidCalled after thePlayerViewLifecycleDelegate.start(Activity)method has completed.
-
Method Details
-
onPostStart
void onPostStart()Called after thePlayerViewLifecycleDelegate.start(Activity)method has completed. -
onPostResume
Called after thePlayerViewLifecycleDelegate.resume()method has completed.- Parameters:
playerController- ThePlayerControllerinstance.
-
onBeforeRelease
void onBeforeRelease(boolean backgroundPlayback) Called before thePlayerViewLifecycleDelegate.releasePlayer(boolean)method starts.- Parameters:
backgroundPlayback- True if the player will be sent to background.
-
onPostRelease
void onPostRelease(boolean backgroundPlayback) Called after thePlayerViewLifecycleDelegate.releasePlayer(boolean)method has completed.- Parameters:
backgroundPlayback- True if the player will be sent to background.
-
onPostDestroy
void onPostDestroy()Called after thePlayerViewLifecycleDelegate.destroy()method has completed.
-