public interface KeyguardSecurityCallback
Modifier and Type | Method and Description |
---|---|
void |
dismiss(boolean securityVerified)
Dismiss the given security screen.
|
boolean |
isVerifyUnlockOnly()
Checks if keyguard is in "verify credentials" mode.
|
void |
reportUnlockAttempt(int userId,
boolean success,
int timeoutMs)
Call to report an unlock attempt.
|
void |
reset()
Resets the keyguard view.
|
void |
userActivity()
Manually report user activity to keep the device awake.
|
void dismiss(boolean securityVerified)
securityVerified
- true if the user correctly entered credentials for the given screen.void userActivity()
boolean isVerifyUnlockOnly()
void reportUnlockAttempt(int userId, boolean success, int timeoutMs)
userId
- id of the user whose unlock attempt is recorded.success
- set to 'true' if user correctly entered security credentials.timeoutMs
- timeout in milliseconds to wait before reattempting an unlock.
Only nonzero if 'success' is falsevoid reset()