語言

DeviceAdminReceiver.OnPasswordFailed 方法

定義

多載

名稱 Description
OnPasswordFailed(Context, Intent)

當使用者因收到 #ACTION_PASSWORD_FAILED而未能輸入裝置或個人檔案挑戰密碼後,會被呼叫。

OnPasswordFailed(Context, Intent, UserHandle)

當使用者因收到 #ACTION_PASSWORD_FAILED而未能輸入裝置或個人檔案挑戰密碼後,會被呼叫。

OnPasswordFailed(Context, Intent)

當使用者因收到 #ACTION_PASSWORD_FAILED而未能輸入裝置或個人檔案挑戰密碼後,會被呼叫。

[Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Handler")]
public virtual void OnPasswordFailed(Android.Content.Context context, Android.Content.Intent intent);
[<Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Handler")>]
abstract member OnPasswordFailed : Android.Content.Context * Android.Content.Intent -> unit
override this.OnPasswordFailed : Android.Content.Context * Android.Content.Intent -> unit

參數

context
Context

運行上下文如下 #onReceive

intent
Intent

接收意圖如下 #onReceive

屬性

備註

當使用者因收到 #ACTION_PASSWORD_FAILED而未能輸入裝置或個人檔案挑戰密碼後,會被呼叫。 這時你可以用來 DevicePolicyManager#getCurrentFailedPasswordAttempts() 取得密碼失敗次數。

此會員已被棄用。 從 , android.os.Build.VERSION_CODES#O改用 #onPasswordFailed(Context, Intent, UserHandle)

Java 文件 android.app.admin.DeviceAdminReceiver.onPasswordFailed(android.content.Context, android.content.Intent)

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

適用於

OnPasswordFailed(Context, Intent, UserHandle)

當使用者因收到 #ACTION_PASSWORD_FAILED而未能輸入裝置或個人檔案挑戰密碼後,會被呼叫。

[Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)]
public virtual void OnPasswordFailed(Android.Content.Context context, Android.Content.Intent intent, Android.OS.UserHandle user);
[<Android.Runtime.Register("onPasswordFailed", "(Landroid/content/Context;Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetOnPasswordFailed_Landroid_content_Context_Landroid_content_Intent_Landroid_os_UserHandle_Handler", ApiSince=26)>]
abstract member OnPasswordFailed : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit
override this.OnPasswordFailed : Android.Content.Context * Android.Content.Intent * Android.OS.UserHandle -> unit

參數

context
Context

運行上下文如下 #onReceive

intent
Intent

接收意圖如下 #onReceive

user
UserHandle

密碼檢查失敗的使用者或個人檔案。 要判斷該使用者是目前的個人檔案還是父用戶,請檢查與 Process#myUserHandle的相等性。

屬性

備註

當使用者因收到 #ACTION_PASSWORD_FAILED而未能輸入裝置或個人檔案挑戰密碼後,會被呼叫。 這時你可以用來 DevicePolicyManager#getCurrentFailedPasswordAttempts() 取得密碼失敗次數。

Java 文件 android.app.admin.DeviceAdminReceiver.onPasswordFailed(android.content.Context, android.content.Intent, android.os.UserHandle)

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

適用於