Language

BeginGetCredentialResponse.Builder.AddAuthenticationAction(Action) メソッド

定義

UI に表示する認証エントリを追加します。

[Android.Runtime.Register("addAuthenticationAction", "(Landroid/service/credentials/Action;)Landroid/service/credentials/BeginGetCredentialResponse$Builder;", "", ApiSince=34)]
public Android.Service.Credentials.BeginGetCredentialResponse.Builder AddAuthenticationAction(Android.Service.Credentials.Action authenticationAction);
[<Android.Runtime.Register("addAuthenticationAction", "(Landroid/service/credentials/Action;)Landroid/service/credentials/BeginGetCredentialResponse$Builder;", "", ApiSince=34)>]
member this.AddAuthenticationAction : Android.Service.Credentials.Action -> Android.Service.Credentials.BeginGetCredentialResponse.Builder

パラメーター

authenticationAction
Action

返品

属性

注釈

UI に表示する認証エントリを追加します。 プロバイダーは、対応するアカウントがロックされていて、基になる資格情報を返さない場合は、このエントリを設定する必要があります。

ユーザーがこの authenticationAction を選択すると、システムは対応する pendingIntent を呼び出します。 認証アクション アクティビティが起動され、ユーザーが認証されたら、プロバイダーは、今回は CredentialEntry の形式でロック解除された資格情報を追加して、BeginGetCredentialResponse で別の応答を作成する必要があります。

新しい応答オブジェクトは、認証アクティビティの結果に設定する必要があります。 結果コードをActivity.RESULT_OKに設定し、CredentialProviderService.EXTRA_BEGIN_GET_CREDENTIAL_RESPONSEの追加を、新しい完全に設定された BeginGetCredentialResponse オブジェクトで設定する必要があります。

android.service.credentials.BeginGetCredentialResponse.Builder.addAuthenticationActionの Android リファレンス。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象