Share via


CredentialEntry Constructors

Definition

Overloads

CredentialEntry(BeginGetCredentialOption, Slice)

Creates an entry that is associated with a BeginGetCredentialOption request.

CredentialEntry(String, Slice)

Creates an entry that is independent of an incoming BeginGetCredentialOption request.

CredentialEntry(String, String, Slice)

Creates an entry that is associated with a BeginGetCredentialOption request.

CredentialEntry(BeginGetCredentialOption, Slice)

Creates an entry that is associated with a BeginGetCredentialOption request.

[Android.Runtime.Register(".ctor", "(Landroid/service/credentials/BeginGetCredentialOption;Landroid/app/slice/Slice;)V", "", ApiSince=34)]
public CredentialEntry (Android.Service.Credentials.BeginGetCredentialOption beginGetCredentialOption, Android.App.Slices.Slice slice);
[<Android.Runtime.Register(".ctor", "(Landroid/service/credentials/BeginGetCredentialOption;Landroid/app/slice/Slice;)V", "", ApiSince=34)>]
new Android.Service.Credentials.CredentialEntry : Android.Service.Credentials.BeginGetCredentialOption * Android.App.Slices.Slice -> Android.Service.Credentials.CredentialEntry

Parameters

beginGetCredentialOption
BeginGetCredentialOption

the request option for which this credential entry is being constructed This helps maintain an association, such that when the user selects this entry, providers can receive the complete corresponding request.

slice
Slice

the slice containing the metadata to be shown on the UI. Must be constructed through the androidx.credentials jetpack library.

Attributes

Remarks

Creates an entry that is associated with a BeginGetCredentialOption request. Providers must use this constructor when they extend from CredentialProviderService to respond to query phase CredentialProviderService#onBeginGetCredential credential retrieval requests.

Java documentation for android.service.credentials.CredentialEntry.CredentialEntry(android.service.credentials.BeginGetCredentialOption, android.app.slice.Slice).

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

CredentialEntry(String, Slice)

Creates an entry that is independent of an incoming BeginGetCredentialOption request.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/app/slice/Slice;)V", "", ApiSince=34)]
public CredentialEntry (string type, Android.App.Slices.Slice slice);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/app/slice/Slice;)V", "", ApiSince=34)>]
new Android.Service.Credentials.CredentialEntry : string * Android.App.Slices.Slice -> Android.Service.Credentials.CredentialEntry

Parameters

type
String

the type of the credential

slice
Slice

the slice containing the metadata to be shown on the UI. Must be constructed through the androidx.credentials jetpack library.

Attributes

Remarks

Creates an entry that is independent of an incoming BeginGetCredentialOption request. Providers must use this constructor for constructing entries to be registered with the framework outside of the span of an API call.

Java documentation for android.service.credentials.CredentialEntry.CredentialEntry(java.lang.String, android.app.slice.Slice).

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

CredentialEntry(String, String, Slice)

Creates an entry that is associated with a BeginGetCredentialOption request.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Landroid/app/slice/Slice;)V", "", ApiSince=34)]
public CredentialEntry (string beginGetCredentialOptionId, string type, Android.App.Slices.Slice slice);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Landroid/app/slice/Slice;)V", "", ApiSince=34)>]
new Android.Service.Credentials.CredentialEntry : string * string * Android.App.Slices.Slice -> Android.Service.Credentials.CredentialEntry

Parameters

beginGetCredentialOptionId
String

the beginGetCredentialOptionId to be retrieved from BeginGetCredentialOption#getId() - the request option for which this CredentialEntry is being constructed This helps maintain an association such that when the user selects this entry, providers can receive the complete corresponding GetCredentialRequest.

type
String

the type of the credential for which this credential entry is being created

slice
Slice

the slice containing the metadata to be shown on the UI. Must be constructed through the androidx.credentials jetpack library.

Attributes

Remarks

Creates an entry that is associated with a BeginGetCredentialOption request. Providers must use this constructor when they extend from CredentialProviderService to respond to query phase CredentialProviderService#onBeginGetCredential credential retrieval requests.

Java documentation for android.service.credentials.CredentialEntry.CredentialEntry(java.lang.String, java.lang.String, android.app.slice.Slice).

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