Language

PictureInPictureParams.Builder.SetCloseAction(RemoteAction) メソッド

定義

既定の閉じる PiP アクションの前に呼び出す必要がある終了アクションを設定します。

[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

パラメーター

action
RemoteAction

RemoteAction: システム終了アクションを置き換えます。 この値は null である可能性があります。

返品

このビルダー インスタンス。 この値は null にすることはできません。

属性

注釈

既定の閉じる PiP アクションの前に呼び出す必要がある終了アクションを設定します。 カスタム アクションでは、Activity.finish() を使用してアクティビティをすばやく閉じる必要があります。 それ以外の場合、システムはカスタムクローズアクションが提供されていないかのように PiP を強制的に閉じます。 このアクションが PictureInPictureParams.Builder.setActions(List) を介して 1 つのセットと一致する場合は、そのカスタム アクションの代わりにメニューに表示されることがあります。

関連項目も参照:

android.app.PictureInPictureParams.Builder.setCloseActionの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象