Language

BeginCreateCredentialResponse.Builder.SetRemoteCreateEntry Method

Definition

Sets a remote create entry to be shown on the UI.

[Android.Runtime.Register("setRemoteCreateEntry", "(Landroid/service/credentials/RemoteEntry;)Landroid/service/credentials/BeginCreateCredentialResponse$Builder;", "", ApiSince=34)]
public Android.Service.Credentials.BeginCreateCredentialResponse.Builder SetRemoteCreateEntry(Android.Service.Credentials.RemoteEntry? remoteCreateEntry);
[<Android.Runtime.Register("setRemoteCreateEntry", "(Landroid/service/credentials/RemoteEntry;)Landroid/service/credentials/BeginCreateCredentialResponse$Builder;", "", ApiSince=34)>]
member this.SetRemoteCreateEntry : Android.Service.Credentials.RemoteEntry -> Android.Service.Credentials.BeginCreateCredentialResponse.Builder

Parameters

remoteCreateEntry
RemoteEntry

Returns

Attributes

Remarks

Sets a remote create entry to be shown on the UI. Provider must set this entry if they wish to create the credential on a different device.

Once the remote credential flow is complete, the Activity result should be set to Activity.RESULT_OK and an extra with the CredentialProviderService.EXTRA_CREATE_CREDENTIAL_RESPONSE key should be populated with a CreateCredentialResponse object.

Note that as a provider service you will only be able to set a remote entry if: - Provider service possesses the Manifest.permission.PROVIDE_REMOTE_CREDENTIALS permission. - Provider service is configured as the provider that can provide remote entries. If the above conditions are not met, setting back BeginCreateCredentialResponse on the callback from CredentialProviderService.onBeginCreateCredential will throw a SecurityException. Requires Manifest.permission.PROVIDE_REMOTE_CREDENTIALS

Android reference for android.service.credentials.BeginCreateCredentialResponse.Builder.setRemoteCreateEntry.

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