Language

PictureInPictureParams.Builder.SetSeamlessResizeEnabled(Boolean) Method

Definition

Sets whether the system can seamlessly resize the window while the activity is in picture-in-picture mode.

[Android.Runtime.Register("setSeamlessResizeEnabled", "(Z)Landroid/app/PictureInPictureParams$Builder;", "GetSetSeamlessResizeEnabled_ZHandler", ApiSince=31)]
public virtual Android.App.PictureInPictureParams.Builder SetSeamlessResizeEnabled(bool seamlessResizeEnabled);
[<Android.Runtime.Register("setSeamlessResizeEnabled", "(Z)Landroid/app/PictureInPictureParams$Builder;", "GetSetSeamlessResizeEnabled_ZHandler", ApiSince=31)>]
abstract member SetSeamlessResizeEnabled : bool -> Android.App.PictureInPictureParams.Builder
override this.SetSeamlessResizeEnabled : bool -> Android.App.PictureInPictureParams.Builder

Parameters

seamlessResizeEnabled
Boolean

boolean: true if the system can seamlessly resize the window while activity is in picture-in-picture mode.

Returns

this builder instance. This value cannot be null.

Attributes

Remarks

Sets whether the system can seamlessly resize the window while the activity is in picture-in-picture mode. This should normally be the case for video content and when it's set to false, system will perform transitions to overcome the artifacts due to resize. This property is true by default for backwards compatibility.

Android reference for android.app.PictureInPictureParams.Builder.setSeamlessResizeEnabled.

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.

Applies to