Android.Appwidget.AppWidgetManager.ActionAppwidgetHostRestored Field
Sent to widget hosts after AppWidget state related to the host has been restored from backup.

Syntax

[Android.Runtime.Register("ACTION_APPWIDGET_HOST_RESTORED")]
public const string ActionAppwidgetHostRestored

See Also

AppWidgetManager.ActionAppwidgetRestored

Remarks

Sent to widget hosts after AppWidget state related to the host has been restored from backup. The intent contains information about how to translate AppWidget ids from the restored data to their new equivalents. If an application maintains multiple separate widget host instances, it will receive this broadcast separately for each one.

The intent will contain the following extras:
AppWidgetManager.ExtraAppwidgetOldIdsThe set of appWidgetIds represented in a restored backup that have been successfully incorporated into the current environment. This may be all of the AppWidgets known to this application, or just a subset. Each entry in this array of appWidgetIds has a corresponding entry in the AppWidgetManager.ExtraAppwidgetIds extra.
AppWidgetManager.ExtraAppwidgetIdsThe set of appWidgetIds now valid for this application. The app should look at its restored widget configuration and translate each appWidgetId in the AppWidgetManager.ExtraAppwidgetOldIds array to its new value found at the corresponding index within this array.
AppWidgetManager.ExtraHostIdThe integer ID of the widget host instance whose state has just been restored.

This is a protected intent that can only be sent by the system.

[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