AppWidgetProvider.OnAppWidgetOptionsChanged Method

Definition

Called in response to the AppWidgetManager#ACTION_APPWIDGET_OPTIONS_CHANGED broadcast when this widget has been layed out at a new size or its options changed via AppWidgetManager#updateAppWidgetOptions.

[Android.Runtime.Register("onAppWidgetOptionsChanged", "(Landroid/content/Context;Landroid/appwidget/AppWidgetManager;ILandroid/os/Bundle;)V", "GetOnAppWidgetOptionsChanged_Landroid_content_Context_Landroid_appwidget_AppWidgetManager_ILandroid_os_Bundle_Handler")]
public virtual void OnAppWidgetOptionsChanged (Android.Content.Context? context, Android.Appwidget.AppWidgetManager? appWidgetManager, int appWidgetId, Android.OS.Bundle? newOptions);
[<Android.Runtime.Register("onAppWidgetOptionsChanged", "(Landroid/content/Context;Landroid/appwidget/AppWidgetManager;ILandroid/os/Bundle;)V", "GetOnAppWidgetOptionsChanged_Landroid_content_Context_Landroid_appwidget_AppWidgetManager_ILandroid_os_Bundle_Handler")>]
abstract member OnAppWidgetOptionsChanged : Android.Content.Context * Android.Appwidget.AppWidgetManager * int * Android.OS.Bundle -> unit
override this.OnAppWidgetOptionsChanged : Android.Content.Context * Android.Appwidget.AppWidgetManager * int * Android.OS.Bundle -> unit

Parameters

context
Context

The android.content.Context Context in which this receiver is running.

appWidgetManager
AppWidgetManager

A AppWidgetManager object you can call AppWidgetManager#updateAppWidget on.

appWidgetId
Int32

The appWidgetId of the widget whose size changed.

newOptions
Bundle

The new options of the changed widget.

Attributes

Remarks

Called in response to the AppWidgetManager#ACTION_APPWIDGET_OPTIONS_CHANGED broadcast when this widget has been layed out at a new size or its options changed via AppWidgetManager#updateAppWidgetOptions.

{

Java documentation for android.appwidget.AppWidgetProvider.onAppWidgetOptionsChanged(android.content.Context, android.appwidget.AppWidgetManager, int, android.os.Bundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also