语言

CredentialDescription 构造函数

定义

构造一个 CredentialDescription。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Set;Ljava/util/List;)V", "", ApiSince=34)]
public CredentialDescription(string type, System.Collections.Generic.ICollection<string> supportedElementKeys, System.Collections.Generic.IList<Android.Service.Credentials.CredentialEntry> credentialEntries);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Set;Ljava/util/List;)V", "", ApiSince=34)>]
new Android.Credentials.CredentialDescription : string * System.Collections.Generic.ICollection<string> * System.Collections.Generic.IList<Android.Service.Credentials.CredentialEntry> -> Android.Credentials.CredentialDescription

参数

type
String

返回的凭据的类型。

supportedElementKeys
ICollection<String>

要与凭据请求匹配的元素的键。

credentialEntries
IList<CredentialEntry>

CredentialEntry如果凭据与此说明匹配,将在帐户选择器上显示的列表。 每个条目都包含要显示在 UI 上的条目中的信息,以及 android.app.PendingIntent 当用户选择此项时将调用的信息。

特性

注解

构造一个 CredentialDescription。

Java文档android.credentials.CredentialDescription.CredentialDescription(java.lang.String, java.util.Set<java.lang.String>, java.util.List<android.service.credentials.CredentialEntry>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于