Android.Content.PM.PackageManager.GetUserBadgedIcon Method
If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a badged copy of the given icon to be able to distinguish it from the original icon.

Syntax

[Android.Runtime.Register("getUserBadgedIcon", "(Landroid/graphics/drawable/Drawable;Landroid/os/UserHandle;)Landroid/graphics/drawable/Drawable;", "GetGetUserBadgedIcon_Landroid_graphics_drawable_Drawable_Landroid_os_UserHandle_Handler")]
public abstract Android.Graphics.Drawables.Drawable GetUserBadgedIcon (Android.Graphics.Drawables.Drawable icon, Android.OS.UserHandle user)

Parameters

icon
The icon to badge.
user
The target user.

Returns

Documentation for this section has not yet been entered.

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 badged copy of the given icon to be able to distinguish it from the original icon. For badging an arbitrary drawable use PackageManager.GetUserBadgedDrawableForDensity(Android.Graphics.Drawables.Drawable, Android.OS.UserHandle, Android.OS.UserHandle, Android.OS.UserHandle).

If the original drawable is a BitmapDrawable and the backing bitmap is mutable as per Android.Graphics.Bitmap.IsMutable, the badging is performed in place and the original drawable is returned.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1