Java android.os UserHandle fields, constructors, methods, implement or subclass

Example usage for Java android.os UserHandle fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os UserHandle.

The text is from its open source code.

Field

intUSER_ALL
UserHandleALL
intUSER_CURRENT
UserHandleCURRENT
intUSER_OWNER
UserHandleOWNER
UserHandleSYSTEM
booleanMU_ENABLED

Constructor

UserHandle(int h)
UserHandle(Parcel in)
Instantiate a new UserHandle from the data in a Parcel that was previously written with #writeToParcel(Parcel,int) .

Method

intgetCallingUserId()
intgetIdentifier()
Returns the userId stored in this UserHandle.
intgetUid(@UserIdInt int userId, @AppIdInt int appId)
Returns the uid that is composed from the userId and the appId.
intgetUserId(int uid)
Returns the user id for a given uid.
intmyUserId()
Returns the user id of the current process
UserHandleof(@UserIdInt int userId)
UserHandlereadFromParcel(Parcel in)
Read a UserHandle from a Parcel that was previously written with #writeToParcel(UserHandle,Parcel) , returning either a null or new object as appropriate.