public interface UnlockScreenCallback
The callbacks will be invoked after your application calls
ScreenLockController#unlockScreen(Context, UnlockScreenCallback) to attempt to unlock the device screen.
SystemCapability.Miscservices#SCREENLOCK| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onUnlockFailed() |
Called when the screen fails to be unlocked.
|
void |
onUnlockSucceeded() |
Called when the screen is successfully unlocked.
|
void onUnlockFailed()
This callback is invoked when your application calls
ScreenLockController#unlockScreen(Context, UnlockScreenCallback) but fails to unlock the screen.
void onUnlockSucceeded()
This callback is invoked when your application calls
ScreenLockController#unlockScreen(Context, UnlockScreenCallback) and succeeds in unlocking the screen.