LauncherUserInfo
class LauncherUserInfo : Parcelable
| kotlin.Any | |
| ↳ | android.content.pm.LauncherUserInfo | 
The LauncherUserInfo object holds information about an Android user that is required to display the Launcher related UI elements specific to the user (like badges).
Summary
| Constants | |
|---|---|
| static String | A boolean extra indicating whether the private space entrypoint should be hidden when locked. | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Bundle | Returns additional configs for this launcher user | 
| Int | Returns serial number of user as returned by  | 
| String | Returns type of the user as defined in  | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<LauncherUserInfo!> | |
Constants
PRIVATE_SPACE_ENTRYPOINT_HIDDEN
static val PRIVATE_SPACE_ENTRYPOINT_HIDDEN: String
A boolean extra indicating whether the private space entrypoint should be hidden when locked.
Value: "private_space_entrypoint_hidden"See Also
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getUserConfig
fun getUserConfig(): Bundle
Returns additional configs for this launcher user
| Return | |
|---|---|
| Bundle | This value cannot be null. | 
See Also
getUserSerialNumber
fun getUserSerialNumber(): Int
Returns serial number of user as returned by UserManager.getSerialNumberForUser(UserHandle)
| Return | |
|---|---|
| Int | the serial number associated with the user | 
getUserType
fun getUserType(): String
Returns type of the user as defined in UserManager. e.g., UserManager.USER_TYPE_PROFILE_MANAGED or UserManager.USER_TYPE_PROFILE_ClONE or UserManager.USER_TYPE_PROFILE_PRIVATE
| Return | |
|---|---|
| String | the userType for the user whose LauncherUserInfo this is This value cannot be null. | 
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
| dest | Parcel: This value cannot be null. | 
| flags | Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
