LauncherActivityInfo.GetBadgedIcon(Int32) Method

Definition

Returns the activity icon with badging appropriate for the profile.

[Android.Runtime.Register("getBadgedIcon", "(I)Landroid/graphics/drawable/Drawable;", "GetGetBadgedIcon_IHandler")]
public virtual Android.Graphics.Drawables.Drawable? GetBadgedIcon (int density);
[<Android.Runtime.Register("getBadgedIcon", "(I)Landroid/graphics/drawable/Drawable;", "GetGetBadgedIcon_IHandler")>]
abstract member GetBadgedIcon : int -> Android.Graphics.Drawables.Drawable
override this.GetBadgedIcon : int -> Android.Graphics.Drawables.Drawable

Parameters

density
Int32

Optional density for the icon, or 0 to use the default density. Use DisplayMetrics for DPI values.

Returns

A badged icon for the activity.

Attributes

Remarks

Returns the activity icon with badging appropriate for the profile.

Java documentation for android.content.pm.LauncherActivityInfo.getBadgedIcon(int).

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

See also