Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

UserManagerCompat

public class UserManagerCompat
extends Object

java.lang.Object
   ↳ androidx.core.os.UserManagerCompat


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

Summary

Public methods

static boolean isUserUnlocked(Context context)

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

Inherited methods

Public methods

isUserUnlocked

public static boolean isUserUnlocked (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.

Parameters
context Context

Returns
boolean