Example usage for Java android.os UserManager fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DISALLOW_MODIFY_ACCOUNTS Specifies if a user is disallowed from adding and removing accounts, unless they are android.accounts.AccountManager#addAccountExplicitly programmatically added by Authenticator. |
String | DISALLOW_INSTALL_UNKNOWN_SOURCES Specifies if a user is disallowed from enabling the "Unknown Sources" setting, that allows installation of apps from unknown sources. |
String | DISALLOW_USB_FILE_TRANSFER Specifies if a user is disallowed from transferring files over USB. |
String | DISALLOW_DEBUGGING_FEATURES Specifies if a user is disallowed from enabling or accessing debugging features. |
String | DISALLOW_MOUNT_PHYSICAL_MEDIA Specifies if a user is disallowed from mounting physical external media. |
String | DISALLOW_FUN Specifies if the user is not allowed to have fun. |
String | DISALLOW_OUTGOING_BEAM Specifies if the user is not allowed to use NFC to beam out data from apps. |
String | DISALLOW_WALLPAPER Hidden user restriction to disallow access to wallpaper manager APIs. |
String | DISALLOW_SET_USER_ICON Specifies if a user is not allowed to change their icon. |
String | ALLOW_PARENT_PROFILE_APP_LINKING Allows apps in the parent profile to handle web links from the managed profile. |
String | KEY_RESTRICTIONS_PENDING Application restriction key that is used to indicate the pending arrival of real restrictions for the app. |
UserManager | get(Context context) |
Bundle | getApplicationRestrictions(String packageName) Returns a Bundle containing any saved application restrictions for this user, for the given package name. |
List | getProfiles(@UserIdInt int userHandle) Returns list of the profiles of userHandle including userHandle itself. |
long | getSerialNumberForUser(UserHandle user) Return the serial number for a user. |
UserHandle | getUserForSerialNumber(long serialNumber) Return the user associated with a serial number previously returned by #getSerialNumberForUser(UserHandle) . |
String | getUserName() Returns the user name of the user making this call. |
List | getUserProfiles() Returns a list of UserHandles for profiles associated with the user that the calling process is running on, including the user itself. |
Bundle | getUserRestrictions() Returns the user-wide restrictions imposed on this user. |
List | getUsers(boolean excludeDying) Returns information for all users on this device. |
boolean | hasUserRestriction(String restrictionKey, UserHandle userHandle) |
boolean | hasUserRestriction(String restrictionKey) Returns whether the current user has been disallowed from performing certain actions or setting certain settings. |
boolean | isSplitSystemUser() |
boolean | isSystemUser() Used to check if this process is running under the system user. |
boolean | isUserAGoat() Used to determine whether the user making this call is subject to teleportations. |
boolean | isUserUnlocked() Return whether the calling user is running in an "unlocked" state. |
boolean | removeUser(@UserIdInt int userHandle) Removes a user and all associated data. |
boolean | supportsMultipleUsers() Returns whether this device supports multiple users with their own login and customizable space. |