語言

CredentialEntry 建構函式

定義

多載

名稱 Description
CredentialEntry(BeginGetCredentialOption, Slice)

建立一個與請求相關聯 BeginGetCredentialOption 的條目。

CredentialEntry(String, Slice)

建立一個獨立於輸入 BeginGetCredentialOption 請求的條目。

CredentialEntry(String, String, Slice)

建立一個與請求相關聯 BeginGetCredentialOption 的條目。

CredentialEntry(BeginGetCredentialOption, Slice)

建立一個與請求相關聯 BeginGetCredentialOption 的條目。

[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

參數

beginGetCredentialOption
BeginGetCredentialOption

建立此憑證條目的請求選項 這有助於維持關聯,當使用者選擇此條目時,提供者能收到完整的對應請求。

slice
Slice

包含 UI 上要顯示的元資料的切片。 必須透過 androidx.credentials jetpack 函式庫建構。

屬性

備註

建立一個與請求相關聯 BeginGetCredentialOption 的條目。 提供者在從 到 CredentialProviderService 回應查詢階段 CredentialProviderService#onBeginGetCredential 憑證擷取請求時,必須使用此建構子。

Java 文件 android.service.credentials.CredentialEntry.CredentialEntry(android.service.credentials.BeginGetCredentialOption, android.app.slice.Slice)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

CredentialEntry(String, Slice)

建立一個獨立於輸入 BeginGetCredentialOption 請求的條目。

[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

參數

type
String

證書的類型

slice
Slice

包含 UI 上要顯示的元資料的切片。 必須透過 androidx.credentials jetpack 函式庫建構。

屬性

備註

建立一個獨立於輸入 BeginGetCredentialOption 請求的條目。 提供者必須使用此建構子來建構要在 API 呼叫範圍之外註冊到框架的條目。

Java 文件 android.service.credentials.CredentialEntry.CredentialEntry(java.lang.String, android.app.slice.Slice)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

CredentialEntry(String, String, Slice)

建立一個與請求相關聯 BeginGetCredentialOption 的條目。

[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

參數

beginGetCredentialOptionId
String

要從 beginGetCredentialOptionID 取出 BeginGetCredentialOption#getId() - 該憑證條目所建構的請求選項。此功能有助於維持關聯,當使用者選擇此條目時,提供者能收到完整的對應 GetCredentialRequest資料。

type
String

建立此憑證條目的憑證類型

slice
Slice

包含 UI 上要顯示的元資料切片,必須透過 androidx.credentials.provider Jetpack 函式庫建構;若手動 slice 建構,物件必須包含類別中非空屬性 androidx.credentials.provider.CredentialEntry ,並依照類別方法中的特定 toSlice 提示切片項目,因為 Android 系統使用此函式庫來解析 slice 並提取所需屬性

屬性

備註

建立一個與請求相關聯 BeginGetCredentialOption 的條目。 提供者在從 到 CredentialProviderService 回應查詢階段 CredentialProviderService#onBeginGetCredential 憑證擷取請求時,必須使用此建構子。

Java 文件 android.service.credentials.CredentialEntry.CredentialEntry(java.lang.String, java.lang.String, android.app.slice.Slice)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於