Android.Appwidget.AppWidgetProvider.OnUpdate Method
Called in response to the AppWidgetManager.ActionAppwidgetUpdate and AppWidgetManager.ActionAppwidgetRestored broadcasts when this AppWidget provider is being asked to provide Android.Widget.RemoteViews for a set of AppWidgets.

Syntax

[Android.Runtime.Register("onUpdate", "(Landroid/content/Context;Landroid/appwidget/AppWidgetManager;[I)V", "GetOnUpdate_Landroid_content_Context_Landroid_appwidget_AppWidgetManager_arrayIHandler")]
public virtual void OnUpdate (Android.Content.Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)

See Also

AppWidgetManager.ActionAppwidgetUpdate

Parameters

context
The Android.Content.Context in which this receiver is running.
appWidgetManager
A Android.Appwidget.AppWidgetManager object you can call AppWidgetManager.UpdateAppWidget(Android.Content.ComponentName, Android.Widget.RemoteViews) on.
appWidgetIds
The appWidgetIds for which an update is needed. Note that this may be all of the AppWidget instances for this provider, or just a subset of them.

Remarks

Called in response to the AppWidgetManager.ActionAppwidgetUpdate and AppWidgetManager.ActionAppwidgetRestored broadcasts when this AppWidget provider is being asked to provide Android.Widget.RemoteViews for a set of AppWidgets. Override this method to implement your own AppWidget functionality.

[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