MockPackageManager.GetUserBadgedLabelFormatted 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 override 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")>]
override this.GetUserBadgedLabelFormatted : Java.Lang.ICharSequence * Android.OS.UserHandle -> Java.Lang.ICharSequence
Parameters
- label
- ICharSequence
The label to change.
- user
- UserHandle
The target user.
Returns
- Attributes
Remarks
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.