Compartilhar via


LabeledIntent.LoadIcon(PackageManager) Method

Definition

Retrieve the icon associated with this object.

[Android.Runtime.Register("loadIcon", "(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;", "GetLoadIcon_Landroid_content_pm_PackageManager_Handler")]
public virtual Android.Graphics.Drawables.Drawable? LoadIcon (Android.Content.PM.PackageManager? pm);
[<Android.Runtime.Register("loadIcon", "(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;", "GetLoadIcon_Landroid_content_pm_PackageManager_Handler")>]
abstract member LoadIcon : Android.Content.PM.PackageManager -> Android.Graphics.Drawables.Drawable
override this.LoadIcon : Android.Content.PM.PackageManager -> Android.Graphics.Drawables.Drawable

Parameters

Returns

Attributes

Remarks

Retrieve the icon associated with this object. If the object does not have a icon, null will be returned, in which case you will probably want to load the icon from the underlying resolved info for the Intent.

Java documentation for android.content.pm.LabeledIntent.loadIcon(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