UserManagerCompat

open class UserManagerCompat
kotlin.Any
   ↳ androidx.core.os.UserManagerCompat

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

Summary

Public methods

open static Boolean
isUserUnlocked(@NonNull context: Context)

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

Public methods

isUserUnlocked

open static fun isUserUnlocked(@NonNull 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.