setFullscreen

abstract fun setFullscreen(fullscreen: Boolean)

Toggles the player's full-screen state. The result is also affected by whether setFullscreenControlOrientation is set to true (default). If setFullscreenControlOrientation is set to true and setFullscreen is called, then the device's orientation automatically changes to landscape in full-screen mode and to portrait for non-fullscreen.

If setFullscreenControlOrientation is set to false, then the device's orientation isn't affected by the player's full-screen state changes.

Parameters

fullscreen

True to enter the full-screen display. Otherwise, false to exit.


abstract fun setFullscreen(fullscreen: Boolean, requestedOrientation: Int?)

Toggles the player's full-screen state.

Parameters

fullscreen

True to enter full-screen mode. Otherwise, false to exit.

requestedOrientation

If set, it prompts the activity to change to the specified orientation. Must be set to one of orientation values defined in android.content.pm.ActivityInfo.