public interface FullscreenHandler
Modifier and Type | Method and 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 when
JWPlayerView.setUseFullscreenLayoutFlags(boolean) is called. |
void |
updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
Called by the JWPlayerView when it's LayoutParameters have been updated.
|
void onFullscreenRequested()
void onFullscreenExitRequested()
void onResume()
void onPause()
void onDestroy()
void onAllowRotationChanged(boolean allowRotation)
allowRotation
- whether the fullscreen handler should listen for rotation changes, true if it should listen for changes.void updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
layoutParams
- the new Layout Parameters for the JWPlayerView.void setUseFullscreenLayoutFlags(boolean flags)
JWPlayerView.setUseFullscreenLayoutFlags(boolean)
is called.
Use this in your fullscreen implementation to determine whether to use the
android.view.View.SYSTEM_UI_FLAG_FULLSCREEN
and
android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
flags
in calls to View.setSystemUiVisibility(int)
.flags
- true if the FullscreenHandler should use the SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION flag.