# UserManagerCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/os/UserManagerCompat.java+class:androidx.core.os.UserManagerCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public class UserManagerCompat
```

<br />

*** ** * ** ***

Helper for accessing features in `https://developer.android.com/reference/android/os/UserManager.html` in a backwards compatible fashion.

## Summary

| ### Public methods |
|---|---|
| `static boolean` | `https://developer.android.com/reference/androidx/core/os/UserManagerCompat#isUserUnlocked(android.content.Context)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context)` Return whether the calling user is running in an "unlocked" state. |

## Public methods

### isUserUnlocked

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static boolean isUserUnlocked(@NonNull Context context)
```

Return whether the calling user is running in an "unlocked" state. A user is unlocked only after they've entered their credentials (such as a lock pattern or PIN), and credential-encrypted private app data storage is available.