Interface FullScreenManager
-
- All Implemented Interfaces:
public interface FullScreenManager
The FullScreenManager which can be used to manage and gather information related to the fullscreen state of the player.
-
-
Method Summary
Modifier and Type Method Description abstract void
setFullScreenOrientationCoupled(boolean coupled)
Sets whether the orientation of the device and the fullscreen state are coupled. abstract boolean
isFullScreenOrientationCoupled()
Returns whether fullscreen coupling is on. abstract void
setFullscreenOrientation(int orientation)
Sets in which ScreenOrientation the player should go into fullscreen. abstract int
getFullscreenOrientation()
Returns which orientation was configured to go to in fullscreen, defaults to ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED. abstract void
requestFullScreen()
Requests the THEOplayer to go fullscreen. abstract void
exitFullScreen()
requests the THEOplayer to exit fullscreen abstract boolean
isFullScreen()
Returns whether the THEOplayerView is in fullscreen. abstract boolean
isFullScreenToggleInProgress()
Returns whether a fullscreen change is still in progress. abstract void
setFullscreenActivity(@NonNull() Class<out FullScreenActivity> fullscreenActivityClass)
Sets the FullScreenActivity class to be used. abstract Class<out FullScreenActivity>
getFullscreenActivity()
The class which is set as the FullScreenActivity class. abstract void
addFullScreenChangeListener(@NonNull() FullScreenChangeListener fullScreenChangeListener)
Adds the given FullScreenChangeListener which listens for fullscreen changes. abstract void
removeFullScreenChangeListener(@NonNull() FullScreenChangeListener fullScreenChangeListener)
Removes the given fullscreenChangeListener. abstract void
addFullScreenIntentCreationListener(@NonNull() IntentCreationListener intentCreationListener)
Adds the given intentCreationListener which listens for the creation of the intent to start the fullscreen activity. abstract void
removeFullScreenIntentCreationListener(@NonNull() IntentCreationListener intentCreationListener)
Removes the given intentCreationListener. -
-
Method Detail
-
setFullScreenOrientationCoupled
abstract void setFullScreenOrientationCoupled(boolean coupled)
Sets whether the orientation of the device and the fullscreen state are coupled.
- When this option is set to true, the player will go fullscreen when the device is rotated to landscape and will also exit fullscreen when the device is rotated back to portrait.
- Note that this has no relation to the orientation in which the player will be in fullscreen. For that, refer to setFullscreenOrientation
- Parameters:
coupled
- Whether coupling is enabled.
-
isFullScreenOrientationCoupled
abstract boolean isFullScreenOrientationCoupled()
Returns whether fullscreen coupling is on.
-
setFullscreenOrientation
abstract void setFullscreenOrientation(int orientation)
Sets in which ScreenOrientation the player should go into fullscreen.
- For values to which the orientation is limited, see ActivityInfo.SCREEN_ORIENTATION_*
- Parameters:
orientation
- The targeted fullscreen orientation.
-
getFullscreenOrientation
abstract int getFullscreenOrientation()
Returns which orientation was configured to go to in fullscreen, defaults to ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED.
-
requestFullScreen
abstract void requestFullScreen()
Requests the THEOplayer to go fullscreen.
-
exitFullScreen
abstract void exitFullScreen()
requests the THEOplayer to exit fullscreen
-
isFullScreen
abstract boolean isFullScreen()
Returns whether the THEOplayerView is in fullscreen.
Default: false
-
isFullScreenToggleInProgress
abstract boolean isFullScreenToggleInProgress()
Returns whether a fullscreen change is still in progress.
-
setFullscreenActivity
abstract void setFullscreenActivity(@NonNull() Class<out FullScreenActivity> fullscreenActivityClass)
Sets the FullScreenActivity class to be used.
- Parameters:
fullscreenActivityClass
- The new FullScreenActivity class.
-
getFullscreenActivity
@NonNull() abstract Class<out FullScreenActivity> getFullscreenActivity()
The class which is set as the FullScreenActivity class.
Default: The FullScreenActivity class.
- Returns:
The FullScreenActivity class. (NonNull)
-
addFullScreenChangeListener
abstract void addFullScreenChangeListener(@NonNull() FullScreenChangeListener fullScreenChangeListener)
Adds the given FullScreenChangeListener which listens for fullscreen changes.
- Parameters:
fullScreenChangeListener
- The FullScreenChangeListener to add.
-
removeFullScreenChangeListener
abstract void removeFullScreenChangeListener(@NonNull() FullScreenChangeListener fullScreenChangeListener)
Removes the given fullscreenChangeListener.
- Parameters:
fullScreenChangeListener
- The FullScreenChangeListener to remove.
-
addFullScreenIntentCreationListener
abstract void addFullScreenIntentCreationListener(@NonNull() IntentCreationListener intentCreationListener)
Adds the given intentCreationListener which listens for the creation of the intent to start the fullscreen activity.
- Parameters:
intentCreationListener
- The IntentCreationListener to add.
-
removeFullScreenIntentCreationListener
abstract void removeFullScreenIntentCreationListener(@NonNull() IntentCreationListener intentCreationListener)
Removes the given intentCreationListener.
- Parameters:
intentCreationListener
- The IntentCreationListener to remove.
-
-
-
-