Dil

CreateCredentialRequest.Builder.SetOrigin(String) Method

Definition

Sets the origin of the calling app.

[Android.Runtime.Register("setOrigin", "(Ljava/lang/String;)Landroid/credentials/CreateCredentialRequest$Builder;", "", ApiSince=34)]
public Android.Credentials.CreateCredentialRequest.Builder SetOrigin(string origin);
[<Android.Runtime.Register("setOrigin", "(Ljava/lang/String;)Landroid/credentials/CreateCredentialRequest$Builder;", "", ApiSince=34)>]
member this.SetOrigin : string -> Android.Credentials.CreateCredentialRequest.Builder

Parameters

origin
String

Returns

Attributes

Remarks

Sets the origin of the calling app. Callers of this special setter (e.g. browsers) can set this origin for an app different from their own, to be able to get credentials on behalf of that app. The permission check only happens later when this instance is passed and processed by the Credential Manager. Requires Manifest.permission.CREDENTIAL_MANAGER_SET_ORIGIN

Android reference for android.credentials.CreateCredentialRequest.Builder.setOrigin.

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