Language

SaveInfo.Builder.SetNegativeAction(NegativeButtonStyle, IntentSender) メソッド

定義

負の保存アクションのスタイルとリスナーを設定します。

[Android.Runtime.Register("setNegativeAction", "(ILandroid/content/IntentSender;)Landroid/service/autofill/SaveInfo$Builder;", "", ApiSince=26)]
public Android.Service.Autofill.SaveInfo.Builder SetNegativeAction(Android.Service.Autofill.NegativeButtonStyle style, Android.Content.IntentSender? listener);
[<Android.Runtime.Register("setNegativeAction", "(ILandroid/content/IntentSender;)Landroid/service/autofill/SaveInfo$Builder;", "", ApiSince=26)>]
member this.SetNegativeAction : Android.Service.Autofill.NegativeButtonStyle * Android.Content.IntentSender -> Android.Service.Autofill.SaveInfo.Builder

パラメーター

style
NegativeButtonStyle

アクション スタイル。 値は次のいずれかです: SaveInfo.NEGATIVE_BUTTON_STYLE_CANCEL;SaveInfo.NEGATIVE_BUTTON_STYLE_REJECT;SaveInfo.NEGATIVE_BUTTON_STYLE_NEVER

listener
IntentSender

アクション リスナー。 この値は null である可能性があります。

返品

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

属性

注釈

負の保存アクションのスタイルとリスナーを設定します。

これにより、オートフィル サービスはスタイルをカスタマイズし、ユーザーが保存 UI で負のアクションを選択したときに通知を受け取ることができます。 スタイルとリスナーがカスタマイズされているかどうかにかかわらず負のアクションを選択すると、保存 UI が閉じられ、カスタム リスナーの意図が指定されると、この意図が開始されることに注意してください。 既定のスタイルは SaveInfo.NEGATIVE_BUTTON_STYLE_CANCEL

android.service.autofill.SaveInfo.Builder.setNegativeActionの Android リファレンス。

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

適用対象