PackageManager.GetUserBadgedLabelFormatted(ICharSequence, 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.
If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a copy of the label with badging for accessibility services like talkback.
[Android.Runtime.Register("getUserBadgedLabel", "(Ljava/lang/CharSequence;Landroid/os/UserHandle;)Ljava/lang/CharSequence;", "GetGetUserBadgedLabel_Ljava_lang_CharSequence_Landroid_os_UserHandle_Handler")]
public abstract Java.Lang.ICharSequence GetUserBadgedLabelFormatted (Java.Lang.ICharSequence label, Android.OS.UserHandle user);
[<Android.Runtime.Register("getUserBadgedLabel", "(Ljava/lang/CharSequence;Landroid/os/UserHandle;)Ljava/lang/CharSequence;", "GetGetUserBadgedLabel_Ljava_lang_CharSequence_Landroid_os_UserHandle_Handler")>]
abstract member GetUserBadgedLabelFormatted : Java.Lang.ICharSequence * Android.OS.UserHandle -> Java.Lang.ICharSequence
Parameters
- label
- ICharSequence
The label to change.
- user
- UserHandle
The target user.
Returns
A label that combines the original label and a badge as determined by the system.
- Attributes
Remarks
If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a copy of the label with badging for accessibility services like talkback. E.g. passing in "Email" and it might return "Work Email" for Email in the work profile.
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.