Skip to content

Most visited

Recently visited

navigation

UserManagerCompat

public class UserManagerCompat
extends Object

java.lang.Object
   ↳ android.support.v4.os.UserManagerCompat


Helper for accessing features in UserManager introduced after API level 4 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

From class java.lang.Object

Public methods

isUserUnlocked

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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.