PictureInPictureParams.Builder.SetActions 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.
Overloads
| Name | Description |
|---|---|
| SetActions(IList<RemoteAction>) |
Sets the user actions. |
| SetActions(IList<RemoteAction>, RemoteAction) |
Sets the user actions and a primary action. |
SetActions(IList<RemoteAction>)
Sets the user actions.
[Android.Runtime.Register("setActions", "(Ljava/util/List;)Landroid/app/PictureInPictureParams$Builder;", "GetSetActions_Ljava_util_List_Handler", ApiSince=26)]
public virtual Android.App.PictureInPictureParams.Builder? SetActions(System.Collections.Generic.IList<Android.App.RemoteAction>? actions);
[<Android.Runtime.Register("setActions", "(Ljava/util/List;)Landroid/app/PictureInPictureParams$Builder;", "GetSetActions_Ljava_util_List_Handler", ApiSince=26)>]
abstract member SetActions : System.Collections.Generic.IList<Android.App.RemoteAction> -> Android.App.PictureInPictureParams.Builder
override this.SetActions : System.Collections.Generic.IList<Android.App.RemoteAction> -> Android.App.PictureInPictureParams.Builder
Parameters
- actions
- IList<RemoteAction>
List: the new actions to show in the picture-in-picture menu.
Returns
this builder instance.
- Attributes
Remarks
Sets the user actions. If there are more than Activity.getMaxNumPictureInPictureActions() actions, then the input list will be truncated to that number.
See also:
Android reference for android.app.PictureInPictureParams.Builder.setActions.
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
SetActions(IList<RemoteAction>, RemoteAction)
Sets the user actions and a primary action.
[Android.Runtime.Register("setActions", "(Ljava/util/List;Landroid/app/RemoteAction;)Landroid/app/PictureInPictureParams$Builder;", "GetSetActions_Ljava_util_List_Landroid_app_RemoteAction_Handler", ApiSince=37)]
public virtual Android.App.PictureInPictureParams.Builder SetActions(System.Collections.Generic.IList<Android.App.RemoteAction>? actions, Android.App.RemoteAction? primaryAction);
[<Android.Runtime.Register("setActions", "(Ljava/util/List;Landroid/app/RemoteAction;)Landroid/app/PictureInPictureParams$Builder;", "GetSetActions_Ljava_util_List_Landroid_app_RemoteAction_Handler", ApiSince=37)>]
abstract member SetActions : System.Collections.Generic.IList<Android.App.RemoteAction> * Android.App.RemoteAction -> Android.App.PictureInPictureParams.Builder
override this.SetActions : System.Collections.Generic.IList<Android.App.RemoteAction> * Android.App.RemoteAction -> Android.App.PictureInPictureParams.Builder
Parameters
- actions
- IList<RemoteAction>
the new actions to show in the picture-in-picture menu. This value may be null.
- primaryAction
- RemoteAction
to be used as the primary action in the PiP menu. This action MUST be one of the actions set via actions. This value may be null.
Returns
this builder instance. This value cannot be null.
- Attributes
Remarks
Sets the user actions and a primary action. If there are more than Activity.getMaxNumPictureInPictureActions() actions, then the input list will be truncated to that number.
If the primary action is valid, the system would use a modern UI for the PiP menu.
Android reference for android.app.PictureInPictureParams.Builder.setActions.
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.