PictureInPictureParams.Builder.SetAutoEnterEnabled(Boolean) 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 whether the system will automatically put the activity in picture-in-picture mode without needing/waiting for the activity to call Activity.enterPictureInPictureMode(PictureInPictureParams).
[Android.Runtime.Register("setAutoEnterEnabled", "(Z)Landroid/app/PictureInPictureParams$Builder;", "GetSetAutoEnterEnabled_ZHandler", ApiSince=31)]
public virtual Android.App.PictureInPictureParams.Builder SetAutoEnterEnabled(bool autoEnterEnabled);
[<Android.Runtime.Register("setAutoEnterEnabled", "(Z)Landroid/app/PictureInPictureParams$Builder;", "GetSetAutoEnterEnabled_ZHandler", ApiSince=31)>]
abstract member SetAutoEnterEnabled : bool -> Android.App.PictureInPictureParams.Builder
override this.SetAutoEnterEnabled : bool -> Android.App.PictureInPictureParams.Builder
Parameters
- autoEnterEnabled
- Boolean
boolean: true if the system will automatically put the activity in picture-in-picture mode.
Returns
this builder instance. This value cannot be null.
- Attributes
Remarks
Sets whether the system will automatically put the activity in picture-in-picture mode without needing/waiting for the activity to call Activity.enterPictureInPictureMode(PictureInPictureParams). If true, Activity.onPictureInPictureRequested() will never be called. This property is false by default.
Android reference for android.app.PictureInPictureParams.Builder.setAutoEnterEnabled.
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.