Android.Appwidget.AppWidgetManager.UpdateAppWidget Method
Set the RemoteViews to use for the specified appWidgetId.

Syntax

[Android.Runtime.Register("updateAppWidget", "(ILandroid/widget/RemoteViews;)V", "GetUpdateAppWidget_ILandroid_widget_RemoteViews_Handler")]
public virtual void UpdateAppWidget (int appWidgetId, Android.Widget.RemoteViews views)

Parameters

appWidgetId
The AppWidget instance for which to set the RemoteViews.
views
The RemoteViews object to show.

Remarks

Set the RemoteViews to use for the specified appWidgetId.

Note that the RemoteViews parameter will be cached by the AppWidgetService, and hence should contain a complete representation of the widget. For performing partial widget updates, see AppWidgetManager.PartiallyUpdateAppWidget(int, Android.Widget.RemoteViews).

It is okay to call this method both inside an AppWidgetManager.ActionAppwidgetUpdate broadcast, and outside of the handler. This method will only work when called from the uid that owns the AppWidget provider.

The total Bitmap memory used by the RemoteViews object cannot exceed that required to fill the screen 1.5 times, ie. (screen width x screen height x 4 x 1.5) bytes.

[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