Android.Appwidget.AppWidgetProvider.OnRestored Method
Called in response to the AppWidgetManager.ActionAppwidgetRestored broadcast when instances of this AppWidget provider have been restored from backup.

Syntax

[Android.Runtime.Register("onRestored", "(Landroid/content/Context;[I[I)V", "GetOnRestored_Landroid_content_Context_arrayIarrayIHandler")]
public virtual void OnRestored (Android.Content.Context context, int[] oldWidgetIds, int[] newWidgetIds)

Parameters

context
Documentation for this section has not yet been entered.
oldWidgetIds
Documentation for this section has not yet been entered.
newWidgetIds
Documentation for this section has not yet been entered.

Remarks

Called in response to the AppWidgetManager.ActionAppwidgetRestored broadcast when instances of this AppWidget provider have been restored from backup. If your provider maintains any persistent data about its widget instances, override this method to remap the old AppWidgetIds to the new values and update any other app state that may be relevant.

This callback will be followed immediately by a call to AppWidgetProvider.OnUpdate(Android.Content.Context, Android.Appwidget.AppWidgetManager, Android.Appwidget.AppWidgetManager) so your provider can immediately generate new RemoteViews suitable for its newly-restored set of instances.

[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