Dil

BeginGetCredentialResponse.Builder.AddAuthenticationAction(Action) Method

Definition

Add an authentication entry to be shown on the 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

Parameters

authenticationAction
Action

Returns

Attributes

Remarks

Add an authentication entry to be shown on the UI. Providers must set this entry if the corresponding account is locked and no underlying credentials can be returned.

When the user selects this authenticationAction, the system invokes the corresponding pendingIntent. Once the authentication action activity is launched, and the user is authenticated, providers should create another response with BeginGetCredentialResponse using this time adding the unlocked credentials in the form of CredentialEntry's.

The new response object must be set on the authentication activity's result. The result code should be set to Activity.RESULT_OK and the CredentialProviderService.EXTRA_BEGIN_GET_CREDENTIAL_RESPONSE extra should be set with the new fully populated BeginGetCredentialResponse object.

Android reference for android.service.credentials.BeginGetCredentialResponse.Builder.addAuthenticationAction.

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