Udostępnij za pośrednictwem


AppWidgetManager.GetAppWidgetIds(ComponentName) Method

Definition

Get the list of appWidgetIds that have been bound to the given AppWidget provider.

[Android.Runtime.Register("getAppWidgetIds", "(Landroid/content/ComponentName;)[I", "GetGetAppWidgetIds_Landroid_content_ComponentName_Handler")]
public virtual int[]? GetAppWidgetIds (Android.Content.ComponentName? provider);
[<Android.Runtime.Register("getAppWidgetIds", "(Landroid/content/ComponentName;)[I", "GetGetAppWidgetIds_Landroid_content_ComponentName_Handler")>]
abstract member GetAppWidgetIds : Android.Content.ComponentName -> int[]
override this.GetAppWidgetIds : Android.Content.ComponentName -> int[]

Parameters

provider
ComponentName

The android.content.BroadcastReceiver that is the AppWidget provider to find appWidgetIds for.

Returns

Int32[]
Attributes

Remarks

Get the list of appWidgetIds that have been bound to the given AppWidget provider.

Java documentation for android.appwidget.AppWidgetManager.getAppWidgetIds(android.content.ComponentName).

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