MockPackageManager.GetUserBadgedLabel(String, 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.
Calls GetUserBadgedLabelFormatted and converts its result to a string. The default mock implementation throws UnsupportedOperationException.
public string? GetUserBadgedLabel(string? label, Android.OS.UserHandle? user);
override this.GetUserBadgedLabel : string * Android.OS.UserHandle -> string
Parameters
- label
- String
The label to which a user badge would be added. Passed to GetUserBadgedLabelFormatted; its default mock implementation does not use this argument.
- user
- UserHandle
The user for the requested operation. Passed to GetUserBadgedLabelFormatted; its default mock implementation does not use this argument.
Returns
No value is returned by the default mock. This wrapper calls GetUserBadgedLabelFormatted, whose default implementation throws UnsupportedOperationException.
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.