Android.Appwidget.AppWidgetProviderInfo.LoadIcon Method
Loads the icon to display for this AppWidget in the AppWidget picker.

Syntax

[Android.Runtime.Register("loadIcon", "(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;", "")]
public Android.Graphics.Drawables.Drawable LoadIcon (Android.Content.Context context, int density)

Parameters

context
Context for accessing resources.
density
The optional desired density as per Android.Util.DisplayMetrics.DensityDpi.

Returns

Documentation for this section has not yet been entered.

Remarks

Loads the icon to display for this AppWidget in the AppWidget picker. If not supplied in the xml, the application icon will be used. A client can optionally provide a desired density such as Android.Util.DisplayMetrics.DensityLowAndroid.Util.DisplayMetrics.DensityMedium, etc. If no density is provided, the density of the current display will be used.

The loaded icon corresponds to the android:icon attribute in the <receiver> element in the AndroidManifest.xml file.

[Android Documentation]

Requirements

Namespace: Android.Appwidget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3