public static class BrightcovePictureInPictureParams.Builder
extends java.lang.Object
BrightcovePictureInPictureParams
objects.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BrightcovePictureInPictureParams |
build() |
BrightcovePictureInPictureParams.Builder |
setActions(java.util.List<android.app.RemoteAction> actions)
Sets the user actions.
|
BrightcovePictureInPictureParams.Builder |
setAspectRatio(android.util.Rational aspectRatio)
Sets the aspect ratio.
|
BrightcovePictureInPictureParams.Builder |
setClosedCaptionsEnabled(boolean closedCaptionsEnabled)
Enables or disables closed captions for Picture in Picture mode.
|
BrightcovePictureInPictureParams.Builder |
setClosedCaptionsReductionScaleFactor(float scaleFactor)
Sets reduction the scale factor for closed captions when entering
Picture in Picture mode.
|
BrightcovePictureInPictureParams.Builder |
setOnUserLeaveEnabled(boolean onUserLeaveEnabled)
Enables or disables entering into Picture in Picture mode when the user has put the activity in
the background, for example, when of pressing the Home key.
|
BrightcovePictureInPictureParams.Builder |
setSourceRectHint(android.graphics.Rect launchBounds)
Sets the source bounds hint.
|
public BrightcovePictureInPictureParams.Builder setAspectRatio(android.util.Rational aspectRatio)
aspectRatio
- the new aspect ratio for the activity in picture-in-picture, must be
between 2.39:1 and 1:2.39 (inclusive).public BrightcovePictureInPictureParams.Builder setActions(java.util.List<android.app.RemoteAction> actions)
Activity.getMaxNumPictureInPictureActions()
actions, then the input list
will be truncated to that number.actions
- the new actions to show in the picture-in-picture menu.RemoteAction
public BrightcovePictureInPictureParams.Builder setSourceRectHint(android.graphics.Rect launchBounds)
launchBounds
- window-coordinate bounds indicating the area of the activity that
will still be visible following the transition into picture-in-picture (eg. the video
view bounds in a video player)public BrightcovePictureInPictureParams.Builder setClosedCaptionsEnabled(boolean closedCaptionsEnabled)
closedCaptionsEnabled
- true to enable closed captions.public BrightcovePictureInPictureParams.Builder setOnUserLeaveEnabled(boolean onUserLeaveEnabled)
onUserLeaveEnabled
- true to enable.public BrightcovePictureInPictureParams.Builder setClosedCaptionsReductionScaleFactor(float scaleFactor)
scaleFactor
- the scale factorpublic BrightcovePictureInPictureParams build()
BrightcovePictureInPictureParams
to be used when entering or updating
the activity in picture-in-picture.