BeginGetCredentialResponse.Builder.AddAuthenticationAction(Action) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增一個認證項目,會在使用者介面上顯示。
[Android.Runtime.Register("addAuthenticationAction", "(Landroid/service/credentials/Action;)Landroid/service/credentials/BeginGetCredentialResponse$Builder;", "", ApiSince=34)]
public Android.Service.Credentials.BeginGetCredentialResponse.Builder AddAuthenticationAction(Android.Service.Credentials.Action authenticationAction);
[<Android.Runtime.Register("addAuthenticationAction", "(Landroid/service/credentials/Action;)Landroid/service/credentials/BeginGetCredentialResponse$Builder;", "", ApiSince=34)>]
member this.AddAuthenticationAction : Android.Service.Credentials.Action -> Android.Service.Credentials.BeginGetCredentialResponse.Builder
參數
- authenticationAction
- Action
傳回
- 屬性
備註
新增一個認證項目,會在使用者介面上顯示。 若對應帳號被鎖定且無法回傳底層憑證,提供者必須設定此條目。
當使用者選擇此 authenticationAction,系統會呼叫相應的 pendingIntent。 一旦驗證行動活動啟動,使用者也被驗證,提供者應利用此時間建立另一個回應,包含已解鎖的憑證,以 CredentialEntry 的形式加入。
新的回應物件必須設定在認證活動的結果上。 結果碼應該設為 Activity.RESULT_OK,CredentialProviderService.EXTRA_BEGIN_GET_CREDENTIAL_RESPONSE 額外則用全新完整填充的 BeginGetCredentialResponse 物件來設定。
Android 參考資料。android.service.credentials.BeginGetCredentialResponse.Builder.addAuthenticationAction
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。