@Deprecated public class DefaultFullscreenHandler extends java.lang.Object implements FullscreenHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
mAllowRotation
Deprecated.
Used to store whether fullscreen can be exited by rotation.
|
protected android.view.View |
mDecorView
Deprecated.
DecorView for the current Activity.
|
protected boolean |
mFullscreen
Deprecated.
Current fullscreen state.
|
protected JWPlayerView |
mJWPlayerView
Deprecated.
JWPlayerView that this FullscreenHandler is doing fullscreen for.
|
protected boolean |
mUseFullscreenLayoutFlags
Deprecated.
Determines whether View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN and
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION flags are used during fullscreen
|
Constructor and Description |
---|
DefaultFullscreenHandler(android.app.Activity activity,
JWPlayerView jwPlayerView)
Deprecated.
Constructs a new DefaultFullscreenHandler.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doLayoutChanges(boolean fullscreen)
Deprecated.
Perform the layout changes necessary to make the player fill the screen.
|
protected void |
doRotation(boolean fullscreen)
Deprecated.
Force the screen orientation to change.
|
protected void |
doRotationListener()
Deprecated.
Starts a orientation event listener.
|
protected void |
doSystemUiVisibility(boolean fullscreen)
Deprecated.
Handle System UI changes.
|
void |
onAllowRotationChanged(boolean allowRotation)
Deprecated.
Called when the "allow rotation" property of the fullscreen handler is being updated.
|
void |
onDestroy()
Deprecated.
Called when this instance of the FullscreenHandler can be destroyed.
|
void |
onFullscreenExitRequested()
Deprecated.
Called when the JWPlayerView wants to exit fullscreen.
|
void |
onFullscreenRequested()
Deprecated.
Called when the JWPlayerView wants to enter fullscreen.
|
void |
onPause()
Deprecated.
Called by the JWPlayerView when the activiy is paused.
|
void |
onResume()
Deprecated.
Re-hides the system UI if the app is brought back to the foreground when in fullscreen.
|
void |
setUseFullscreenLayoutFlags(boolean useFullscreenLayoutFlags)
Deprecated.
Determines whether View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN and
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION flags are used during fullscreen.
|
void |
updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
Deprecated.
Called by the JWPlayerView when it's LayoutParameters have been updated.
|
protected android.view.View mDecorView
protected boolean mFullscreen
protected JWPlayerView mJWPlayerView
protected boolean mAllowRotation
protected boolean mUseFullscreenLayoutFlags
public DefaultFullscreenHandler(android.app.Activity activity, JWPlayerView jwPlayerView)
activity
- the activity containing the instance of the JWPlayerView that this FullscreenHandler will be attached too.jwPlayerView
- the JWPlayerView that will be attached to this fullscreen handler.public void onFullscreenRequested()
onFullscreenRequested
in interface FullscreenHandler
public void onFullscreenExitRequested()
onFullscreenExitRequested
in interface FullscreenHandler
@CallSuper public void onDestroy()
onDestroy
in interface FullscreenHandler
public void onAllowRotationChanged(boolean allowRotation)
onAllowRotationChanged
in interface FullscreenHandler
allowRotation
- whether the fullscreen handler should listen for rotation changes, true if it should listen for changes.public void updateLayoutParams(android.view.ViewGroup.LayoutParams layoutParams)
updateLayoutParams
in interface FullscreenHandler
layoutParams
- the new Layout Parameters for the JWPlayerView.protected void doRotation(boolean fullscreen)
Default behavior is to force LANDSCAPE/REVERSE_LANDSCAPE when fullscreen == true and PORTRAIT when fullscreen == false.
fullscreen
- True when entering fullscreen.protected void doSystemUiVisibility(boolean fullscreen)
Default behavior is to hide the system UI when fullscreen == true and show it when fullscreen == false.
fullscreen
- True when entering fullscreen.protected void doRotationListener()
protected void doLayoutChanges(boolean fullscreen)
fullscreen
- True when entering fullscreen.public void setUseFullscreenLayoutFlags(boolean useFullscreenLayoutFlags)
These flags create an issue on Android 4.1, 4.2, and 4.3 devices when using the SupportActionBar, set this to false to disable using these flags.
setUseFullscreenLayoutFlags
in interface FullscreenHandler
useFullscreenLayoutFlags
- true if the FullscreenHandler should use the SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION flag.@CallSuper public void onResume()
onResume
in interface FullscreenHandler
@CallSuper public void onPause()
onPause
in interface FullscreenHandler