-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BrightcovePictureInPictureParams implements Parcelable
Represents a set of parameters used to initialize and update an Activity in picture-in-picture mode. This class is a derivative of android.app.PictureInPictureParams
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
BrightcovePictureInPictureParams.Builder
Builder class for BrightcovePictureInPictureParams objects.
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<BrightcovePictureInPictureParams>
CREATOR
-
Method Summary
Modifier and Type Method Description void
copyOnlySet(BrightcovePictureInPictureParams otherArgs)
Copies the set parameters from the other picture-in-picture args. float
getAspectRatio()
Rational
getAspectRatioRational()
Gets aspect ratio rational. boolean
hasSetAspectRatio()
List<RemoteAction>
getActions()
boolean
hasSetActions()
void
truncateActions(int size)
Truncates the set of actions to the given {@param size}. Rect
getSourceRectHint()
boolean
hasSourceBoundsHint()
boolean
isClosedCaptionsEnabled()
boolean
isOnUserLeaveEnabled()
Returns true if the Activity will enter into Picture in Picture mode when the user puts the activity inthe background, for example, when of pressing the Home key. float
getClosedCaptionsReductionScaleFactor()
PictureInPictureParams
getAndroidPictureInPictureParams()
Gets the Android PictureInPictureParams. int
describeContents()
void
writeToParcel(Parcel out, int flags)
-
-
Method Detail
-
copyOnlySet
void copyOnlySet(BrightcovePictureInPictureParams otherArgs)
Copies the set parameters from the other picture-in-picture args.
-
getAspectRatio
float getAspectRatio()
-
getAspectRatioRational
Rational getAspectRatioRational()
Gets aspect ratio rational.
-
hasSetAspectRatio
boolean hasSetAspectRatio()
-
getActions
List<RemoteAction> getActions()
-
hasSetActions
boolean hasSetActions()
-
truncateActions
void truncateActions(int size)
Truncates the set of actions to the given {@param size}.
-
getSourceRectHint
Rect getSourceRectHint()
-
hasSourceBoundsHint
boolean hasSourceBoundsHint()
-
isClosedCaptionsEnabled
boolean isClosedCaptionsEnabled()
-
isOnUserLeaveEnabled
boolean isOnUserLeaveEnabled()
Returns true if the Activity will enter into Picture in Picture mode when the user puts the activity inthe background, for example, when of pressing the Home key.
-
getClosedCaptionsReductionScaleFactor
float getClosedCaptionsReductionScaleFactor()
-
getAndroidPictureInPictureParams
PictureInPictureParams getAndroidPictureInPictureParams()
Gets the Android PictureInPictureParams.Available only for Android 8+
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel out, int flags)
-
-
-
-