LauncherApps.GetLauncherUserInfo(UserHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns information related to a user which is useful for displaying UI elements to distinguish it from other users (eg, badges).
[Android.Runtime.Register("getLauncherUserInfo", "(Landroid/os/UserHandle;)Landroid/content/pm/LauncherUserInfo;", "", ApiSince=35)]
public Android.Content.PM.LauncherUserInfo? GetLauncherUserInfo (Android.OS.UserHandle userHandle);
[<Android.Runtime.Register("getLauncherUserInfo", "(Landroid/os/UserHandle;)Landroid/content/pm/LauncherUserInfo;", "", ApiSince=35)>]
member this.GetLauncherUserInfo : Android.OS.UserHandle -> Android.Content.PM.LauncherUserInfo
Parameters
- userHandle
- UserHandle
user handle of the user for which LauncherUserInfo is requested.
Returns
the LauncherUserInfo
object related to the user specified, null in case
the user is inaccessible.
- Attributes
Remarks
Returns information related to a user which is useful for displaying UI elements to distinguish it from other users (eg, badges).
If the user in question is a hidden profile UserManager.USER_TYPE_PROFILE_PRIVATE
, caller should have either:
<ul> <li>the privileged android.Manifest.permission.ACCESS_HIDDEN_PROFILES_FULL
permission</li> <li>the normal android.Manifest.permission.ACCESS_HIDDEN_PROFILES
permission and the android.app.role.RoleManager.ROLE_HOME
role. </li> </ul>
Java documentation for android.content.pm.LauncherApps.getLauncherUserInfo(android.os.UserHandle)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.