UserManagerCompat

Added in 1.1.0

class UserManagerCompat


Helper for accessing features in android.os.UserManager in a backwards compatible fashion.

Summary

Public functions

java-static Boolean

Return whether the calling user is running in an "unlocked" state.

Public functions

isUserUnlocked

Added in 1.1.0
java-static fun isUserUnlocked(context: Context): Boolean

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.