setAspectRatio

open fun setAspectRatio(aspectRatio: Rational): PictureInPictureManager

Sets the aspect ratio. This aspect ratio is defined as the desired width / height, and does not change upon device rotation.

Return

the PictureInPictureManager instance.

Parameters

aspectRatio

the new aspect ratio for the activity in picture-in-picture, must be between 2.39:1 and 1:2.39 (inclusive).