# KeyguardManager.DeviceLockedStateListener

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  

# KeyguardManager.DeviceLockedStateListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/app/KeyguardManager.DeviceLockedStateListener "View this page in Kotlin")\|Java

`
public
static


interface
KeyguardManager.DeviceLockedStateListener
`  
`


`

|-------------------------------------------------------|
| android.app.KeyguardManager.DeviceLockedStateListener |

<br />

*** ** * ** ***

Listener for device locked state changes.

## Summary

|                                                                                                                                  ### Public methods                                                                                                                                   ||
|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onDeviceLockedStateChanged](https://developer.android.com/reference/android/app/KeyguardManager.DeviceLockedStateListener#onDeviceLockedStateChanged(boolean))`(boolean isDeviceLocked) ` Callback function that executes when the device locked state changes. |

## Public methods

### onDeviceLockedStateChanged

Added in[version 36.1](https://developer.android.com/topic/libraries/support-library/revisions)  

```
public abstract void onDeviceLockedStateChanged (boolean isDeviceLocked)
```

Callback function that executes when the device locked state changes.

<br />

|             Parameters             ||
|------------------|------------------|
| `isDeviceLocked` | `boolean` <br /> |