Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
added in version 24.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

UserManagerCompat

public class UserManagerCompat
extends Object

java.lang.Object
   ↳ android.support.v4.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

From class java.lang.Object

Public methods

isUserUnlocked

added in version 24.1.0
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