java.lang.Object | |
↳ | android.os.UserManager |
Manages users and user details on a multi-user system.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the serial number for a user.
| |||||||||||
Return the number of users currently created on the device.
| |||||||||||
Return the user associated with a serial number previously
returned by
getSerialNumberForUser(UserHandle) . | |||||||||||
Returns the user name of the user making this call.
| |||||||||||
Used to determine whether the user making this call is subject to
teleportations.
| |||||||||||
Return whether the given user is actively running.
| |||||||||||
Return whether the given user is actively running or stopping.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Return the serial number for a user. This is a device-unique number assigned to that user; if the user is deleted and then a new user created, the new users will not be given the same serial number.
user | The user whose serial number is to be retrieved. |
---|
Return the number of users currently created on the device.
Return the user associated with a serial number previously
returned by getSerialNumberForUser(UserHandle)
.
serialNumber | The serial number of the user that is being retrieved. |
---|
Returns the user name of the user making this call. This call is only available to applications on the system image; it requires the MANAGE_USERS permission.
Used to determine whether the user making this call is subject to teleportations.
Return whether the given user is actively running. This means that the user is in the "started" state, not "stopped" -- it is currently allowed to run code through scheduled alarms, receiving broadcasts, etc. A started user may be either the current foreground user or a background user; the result here does not distinguish between the two.
user | The user to retrieve the running state for. |
---|
Return whether the given user is actively running or stopping.
This is like isUserRunning(UserHandle)
, but will also return
true if the user had been running but is in the process of being stopped
(but is not yet fully stopped, and still running some code).
user | The user to retrieve the running state for. |
---|