MockPackageManager.GetUserBadgedDrawableForDensity Method

Definition

[Android.Runtime.Register("getUserBadgedDrawableForDensity", "(Landroid/graphics/drawable/Drawable;Landroid/os/UserHandle;Landroid/graphics/Rect;I)Landroid/graphics/drawable/Drawable;", "GetGetUserBadgedDrawableForDensity_Landroid_graphics_drawable_Drawable_Landroid_os_UserHandle_Landroid_graphics_Rect_IHandler")]
public override Android.Graphics.Drawables.Drawable? GetUserBadgedDrawableForDensity (Android.Graphics.Drawables.Drawable? drawable, Android.OS.UserHandle? user, Android.Graphics.Rect? badgeLocation, int badgeDensity);
[<Android.Runtime.Register("getUserBadgedDrawableForDensity", "(Landroid/graphics/drawable/Drawable;Landroid/os/UserHandle;Landroid/graphics/Rect;I)Landroid/graphics/drawable/Drawable;", "GetGetUserBadgedDrawableForDensity_Landroid_graphics_drawable_Drawable_Landroid_os_UserHandle_Landroid_graphics_Rect_IHandler")>]
override this.GetUserBadgedDrawableForDensity : Android.Graphics.Drawables.Drawable * Android.OS.UserHandle * Android.Graphics.Rect * int -> Android.Graphics.Drawables.Drawable

Parameters

drawable
Drawable

The drawable to badge.

user
UserHandle

The target user.

badgeLocation
Rect

Where in the bounds of the badged drawable to place the badge. If not provided, the badge is applied on top of the entire drawable being badged.

badgeDensity
Int32

The optional desired density for the badge as per DensityDpi. If not provided, the density of the display is used.

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.

Applies to