Android.Appwidget.AppWidgetProviderInfo.LoadPreviewImage Method
Loads a preview of what the AppWidget will look like after it's configured.

Syntax

[Android.Runtime.Register("loadPreviewImage", "(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;", "")]
public Android.Graphics.Drawables.Drawable LoadPreviewImage (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 a preview of what the AppWidget will look like after it's configured. 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 image corresponds to the android:previewImage 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