Share via


AppWidgetManager.GetAppWidgetOptions(Int32) Method

Definition

Get the extras associated with a given widget instance.

[Android.Runtime.Register("getAppWidgetOptions", "(I)Landroid/os/Bundle;", "GetGetAppWidgetOptions_IHandler")]
public virtual Android.OS.Bundle? GetAppWidgetOptions (int appWidgetId);
[<Android.Runtime.Register("getAppWidgetOptions", "(I)Landroid/os/Bundle;", "GetGetAppWidgetOptions_IHandler")>]
abstract member GetAppWidgetOptions : int -> Android.OS.Bundle
override this.GetAppWidgetOptions : int -> Android.OS.Bundle

Parameters

appWidgetId
Int32

The AppWidget instances for which to set the RemoteViews.

Returns

The options associated with the given widget instance.

Attributes

Remarks

Get the extras associated with a given widget instance.

The extras can be used to embed additional information about this widget to be accessed by the associated widget's AppWidgetProvider.

Java documentation for android.appwidget.AppWidgetManager.getAppWidgetOptions(int).

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

  • <xref:Android.Appwidget.AppWidgetManager.UpdateAppWidgetOptions(System.Int32%2c+Android.OS.Bundle)>