UserManager

Class of android.os · UserManager.java · Android's reference

public class UserManager

The device's one user, unlocked.

Constructors

public UserManager() empty body source

Methods

public boolean isUserUnlocked() source
public boolean isUserUnlocked(UserHandle user) source
public boolean isDemoUser() source
public boolean isManagedProfile() source
public boolean isSystemUser() source
public boolean isUserAGoat() source
public boolean isUserRunning(UserHandle user) source
public UserHandle getUserForSerialNumber(long serial) source
public long getSerialNumberForUser(UserHandle user) source
public java.util.List<UserHandle> getUserProfiles() source
public Bundle getUserRestrictions() source
public Bundle getApplicationRestrictions(String packageName) source

No device policy sets restrictions here.

public boolean hasUserRestriction(String key) source
public static boolean supportsMultipleUsers() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.