KeyguardManager.CreateConfirmDeviceCredentialIntent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateConfirmDeviceCredentialIntent(ICharSequence, ICharSequence) |
取得一個意圖,提示使用者確認目前裝置使用者的憑證(PIN碼、圖案、密碼或生物辨識,若已註冊)。 |
| CreateConfirmDeviceCredentialIntent(String, String) |
取得一個意圖,提示使用者確認目前裝置使用者的憑證(PIN碼、圖案、密碼或生物辨識,若已註冊)。 |
CreateConfirmDeviceCredentialIntent(ICharSequence, ICharSequence)
取得一個意圖,提示使用者確認目前裝置使用者的憑證(PIN碼、圖案、密碼或生物辨識,若已註冊)。
[Android.Runtime.Register("createConfirmDeviceCredentialIntent", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/Intent;", "GetCreateConfirmDeviceCredentialIntent_Ljava_lang_CharSequence_Ljava_lang_CharSequence_Handler")]
public virtual Android.Content.Intent? CreateConfirmDeviceCredentialIntent(Java.Lang.ICharSequence? title, Java.Lang.ICharSequence? description);
[<Android.Runtime.Register("createConfirmDeviceCredentialIntent", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/content/Intent;", "GetCreateConfirmDeviceCredentialIntent_Ljava_lang_CharSequence_Ljava_lang_CharSequence_Handler")>]
abstract member CreateConfirmDeviceCredentialIntent : Java.Lang.ICharSequence * Java.Lang.ICharSequence -> Android.Content.Intent
override this.CreateConfirmDeviceCredentialIntent : Java.Lang.ICharSequence * Java.Lang.ICharSequence -> Android.Content.Intent
參數
- title
- ICharSequence
角色序列
- description
- ICharSequence
角色序列
傳回
啟動活動的意圖,或若不需要密碼則為 null。
- 屬性
備註
此方法在 API 等級 29 被棄用。 參見 BiometricPrompt.Builder.setAllowedAuthenticators(int)
取得一個意圖,提示使用者確認目前裝置使用者的憑證(PIN碼、圖案、密碼或生物辨識,若已註冊)。 呼叫者預期會使用 android.app.Activity.startActivityForResult(Intent,int) 啟動此活動,並在使用者成功完成挑戰後檢查Activity.RESULT_OK。 需要使用 PackageManager.hasSystemFeature(String) 偵測的 PackageManager.FEATURE_SECURE_LOCK_SCREEN 功能。
Android 參考資料。android.app.KeyguardManager.createConfirmDeviceCredentialIntent
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
CreateConfirmDeviceCredentialIntent(String, String)
取得一個意圖,提示使用者確認目前裝置使用者的憑證(PIN碼、圖案、密碼或生物辨識,若已註冊)。
public Android.Content.Intent? CreateConfirmDeviceCredentialIntent(string? title, string? description);
member this.CreateConfirmDeviceCredentialIntent : string * string -> Android.Content.Intent
參數
- title
- String
角色序列
- description
- String
角色序列
傳回
啟動活動的意圖,或若不需要密碼則為 null。
備註
此方法在 API 等級 29 被棄用。 參見 BiometricPrompt.Builder.setAllowedAuthenticators(int)
取得一個意圖,提示使用者確認目前裝置使用者的憑證(PIN碼、圖案、密碼或生物辨識,若已註冊)。 呼叫者預期會使用 android.app.Activity.startActivityForResult(Intent,int) 啟動此活動,並在使用者成功完成挑戰後檢查Activity.RESULT_OK。 需要使用 PackageManager.hasSystemFeature(String) 偵測的 PackageManager.FEATURE_SECURE_LOCK_SCREEN 功能。
Android 參考資料。android.app.KeyguardManager.createConfirmDeviceCredentialIntent
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。