Android.Appwidget.AppWidgetManager.BindAppWidgetIdIfAllowed Method
Set the component for a given appWidgetId.

Syntax

[Android.Runtime.Register("bindAppWidgetIdIfAllowed", "(ILandroid/content/ComponentName;)Z", "GetBindAppWidgetIdIfAllowed_ILandroid_content_ComponentName_Handler")]
public virtual bool BindAppWidgetIdIfAllowed (int appWidgetId, Android.Content.ComponentName provider)

Parameters

appWidgetId
The AppWidget id under which to bind the provider.
provider
The Android.Content.BroadcastReceiver that will be the AppWidget provider for this AppWidget.

Returns

Documentation for this section has not yet been entered.

Remarks

Set the component for a given appWidgetId.

You need the BIND_APPWIDGET permission or the user must have enabled binding widgets always for your component. Should be used by apps that host widgets; if this method returns false, call AppWidgetManager.ActionAppwidgetBind to request permission to bind

[Android Documentation]

Requirements

Namespace: Android.Appwidget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16