Sdílet prostřednictvím


AppWidgetManager.UpdateAppWidgetOptions(Int32, Bundle) Method

Definition

Update the extras for a given widget instance.

[Android.Runtime.Register("updateAppWidgetOptions", "(ILandroid/os/Bundle;)V", "GetUpdateAppWidgetOptions_ILandroid_os_Bundle_Handler")]
public virtual void UpdateAppWidgetOptions (int appWidgetId, Android.OS.Bundle? options);
[<Android.Runtime.Register("updateAppWidgetOptions", "(ILandroid/os/Bundle;)V", "GetUpdateAppWidgetOptions_ILandroid_os_Bundle_Handler")>]
abstract member UpdateAppWidgetOptions : int * Android.OS.Bundle -> unit
override this.UpdateAppWidgetOptions : int * Android.OS.Bundle -> unit

Parameters

appWidgetId
Int32

The AppWidget instances for which to set the RemoteViews.

options
Bundle

The options to associate with this widget

Attributes

Remarks

Update the extras for 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.

The new options are merged into existing options using Bundle#putAll semantics.

Java documentation for android.appwidget.AppWidgetManager.updateAppWidgetOptions(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