Interface FullscreenHandler
-
- All Known Implementing Classes:
DefaultFullscreenHandler
,MaximizingFullscreenHandler
public interface FullscreenHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAllowRotationChanged(boolean allowRotation)
Called when the "allow rotation" property of the fullscreen handler is being updated.void
onDestroy()
Called when this instance of the FullscreenHandler can be destroyed.void
onFullscreenExitRequested()
Called when the JWPlayerView wants to exit fullscreen.void
onFullscreenRequested()
Called when the JWPlayerView wants to enter fullscreen.void
onPause()
Called by the JWPlayerView when the activiy is paused.void
onResume()
Called by the JWPlayerView when the activity is resumed.void
setUseFullscreenLayoutFlags(boolean flags)
Called whenJWPlayerView.setUseFullscreenLayoutFlags(boolean)
is called.void
updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
Called by the JWPlayerView when it's LayoutParameters have been updated.
-
-
-
Method Detail
-
onFullscreenRequested
void onFullscreenRequested()
Called when the JWPlayerView wants to enter fullscreen.
-
onFullscreenExitRequested
void onFullscreenExitRequested()
Called when the JWPlayerView wants to exit fullscreen.
-
onResume
void onResume()
Called by the JWPlayerView when the activity is resumed.
-
onPause
void onPause()
Called by the JWPlayerView when the activiy is paused. Use this to unregister sensor listeners
-
onDestroy
void onDestroy()
Called when this instance of the FullscreenHandler can be destroyed. Use this event to unregister rotation listeners.
-
onAllowRotationChanged
void onAllowRotationChanged(boolean allowRotation)
Called when the "allow rotation" property of the fullscreen handler is being updated. Use this to enable or disable your rotation listener.- Parameters:
allowRotation
- whether the fullscreen handler should listen for rotation changes, true if it should listen for changes.
-
updateLayoutParams
void updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
Called by the JWPlayerView when it's LayoutParameters have been updated. Use these layout parameters when returning from fullscreen.- Parameters:
layoutParams
- the new Layout Parameters for the JWPlayerView.
-
setUseFullscreenLayoutFlags
void setUseFullscreenLayoutFlags(boolean flags)
Called whenJWPlayerView.setUseFullscreenLayoutFlags(boolean)
is called. Use this in your fullscreen implementation to determine whether to use theandroid.view.View.SYSTEM_UI_FLAG_FULLSCREEN
andandroid.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
flags in calls toView.setSystemUiVisibility(int)
.- Parameters:
flags
- true if the FullscreenHandler should use the SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION flag.
-
-