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

Syntax

[Android.Runtime.Register("bindAppWidgetIdIfAllowed", "(ILandroid/content/ComponentName;Landroid/os/Bundle;)Z", "GetBindAppWidgetIdIfAllowed_ILandroid_content_ComponentName_Landroid_os_Bundle_Handler")]
public virtual bool BindAppWidgetIdIfAllowed (int appWidgetId, Android.Content.ComponentName provider, Android.OS.Bundle options)

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.
options
Bundle containing options for the AppWidget. See also AppWidgetManager.UpdateAppWidgetOptions(int, Android.OS.Bundle)

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 17