PictureInPictureParams.Builder.SetCloseAction(RemoteAction) 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 a close action that should be invoked before the default close PiP action.
[Android.Runtime.Register("setCloseAction", "(Landroid/app/RemoteAction;)Landroid/app/PictureInPictureParams$Builder;", "GetSetCloseAction_Landroid_app_RemoteAction_Handler", ApiSince=33)]
public virtual Android.App.PictureInPictureParams.Builder SetCloseAction(Android.App.RemoteAction? action);
[<Android.Runtime.Register("setCloseAction", "(Landroid/app/RemoteAction;)Landroid/app/PictureInPictureParams$Builder;", "GetSetCloseAction_Landroid_app_RemoteAction_Handler", ApiSince=33)>]
abstract member SetCloseAction : Android.App.RemoteAction -> Android.App.PictureInPictureParams.Builder
override this.SetCloseAction : Android.App.RemoteAction -> Android.App.PictureInPictureParams.Builder
Parameters
- action
- RemoteAction
RemoteAction: to replace the system close action. This value may be null.
Returns
this builder instance. This value cannot be null.
- Attributes
Remarks
Sets a close action that should be invoked before the default close PiP action. The custom action must close the activity quickly using Activity.finish(). Otherwise, the system will forcibly close the PiP as if no custom close action was provided. If the action matches one set via PictureInPictureParams.Builder.setActions(List) it may be shown in place of that custom action in the menu.
See also:
Android reference for android.app.PictureInPictureParams.Builder.setCloseAction.
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.