Stay organized with collections
Save and categorize content based on your preferences.
KeyguardManager.DeviceLockedStateListener
public
static
interface
KeyguardManager.DeviceLockedStateListener
android.app.KeyguardManager.DeviceLockedStateListener
|
Listener for device locked state changes.
Summary
Public methods |
abstract
void
|
onDeviceLockedStateChanged(boolean isDeviceLocked)
Callback function that executes when the device locked state changes.
|
Public methods
onDeviceLockedStateChanged
public abstract void onDeviceLockedStateChanged (boolean isDeviceLocked)
Callback function that executes when the device locked state changes.
Parameters |
isDeviceLocked |
boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# KeyguardManager.DeviceLockedStateListener\n\n[**Added in Android Baklava**](/preview) \n\nKeyguardManager.DeviceLockedStateListener\n=========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/KeyguardManager.DeviceLockedStateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nKeyguardManager.DeviceLockedStateListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------|\n| android.app.KeyguardManager.DeviceLockedStateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener for device locked state changes.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onDeviceLockedStateChanged](/reference/android/app/KeyguardManager.DeviceLockedStateListener#onDeviceLockedStateChanged(boolean))`(boolean isDeviceLocked) ` Callback function that executes when the device locked state changes. |\n\nPublic methods\n--------------\n\n### onDeviceLockedStateChanged\n\n[**Added in Android Baklava**](/preview) \n\n```\npublic abstract void onDeviceLockedStateChanged (boolean isDeviceLocked)\n```\n\nCallback function that executes when the device locked state changes.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|------------------|\n| `isDeviceLocked` | `boolean` \u003cbr /\u003e |"]]