Share via


PackageItemInfo.LoadUnbadgedIcon(PackageManager) Method

Definition

Retrieve the current graphical icon associated with this item without the addition of a work badge if applicable.

[Android.Runtime.Register("loadUnbadgedIcon", "(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;", "GetLoadUnbadgedIcon_Landroid_content_pm_PackageManager_Handler", ApiSince=22)]
public virtual Android.Graphics.Drawables.Drawable? LoadUnbadgedIcon (Android.Content.PM.PackageManager? pm);
[<Android.Runtime.Register("loadUnbadgedIcon", "(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;", "GetLoadUnbadgedIcon_Landroid_content_pm_PackageManager_Handler", ApiSince=22)>]
abstract member LoadUnbadgedIcon : Android.Content.PM.PackageManager -> Android.Graphics.Drawables.Drawable
override this.LoadUnbadgedIcon : Android.Content.PM.PackageManager -> Android.Graphics.Drawables.Drawable

Parameters

pm
PackageManager

A PackageManager from which the icon can be loaded; usually the PackageManager from which you originally retrieved this item.

Returns

Returns a Drawable containing the item's icon. If the item does not have an icon, the item's default icon is returned such as the default activity icon.

Attributes

Remarks

Retrieve the current graphical icon associated with this item without the addition of a work badge if applicable. This will call back on the given PackageManager to load the icon from the application.

Java documentation for android.content.pm.PackageItemInfo.loadUnbadgedIcon(android.content.pm.PackageManager).

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