PictureInPictureParams.Builder.SetAspectRatio(Rational) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the aspect ratio.
[Android.Runtime.Register("setAspectRatio", "(Landroid/util/Rational;)Landroid/app/PictureInPictureParams$Builder;", "GetSetAspectRatio_Landroid_util_Rational_Handler", ApiSince=26)]
public virtual Android.App.PictureInPictureParams.Builder? SetAspectRatio(Android.Util.Rational? aspectRatio);
[<Android.Runtime.Register("setAspectRatio", "(Landroid/util/Rational;)Landroid/app/PictureInPictureParams$Builder;", "GetSetAspectRatio_Landroid_util_Rational_Handler", ApiSince=26)>]
abstract member SetAspectRatio : Android.Util.Rational -> Android.App.PictureInPictureParams.Builder
override this.SetAspectRatio : Android.Util.Rational -> Android.App.PictureInPictureParams.Builder
Parameters
- aspectRatio
- Rational
Rational: the new aspect ratio for the activity in picture-in-picture, must be between 2.39:1 and 1:2.39 (inclusive).
Returns
this builder instance.
- Attributes
Remarks
Sets the aspect ratio. This aspect ratio is defined as the desired width / height, and does not change upon device rotation.
Android reference for android.app.PictureInPictureParams.Builder.setAspectRatio.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.