Android.Appwidget.AppWidgetManager.BindAppWidgetIdIfAllowed Method
Set the provider for a given appWidgetId if the caller has a permission.

Syntax

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

Parameters

appWidgetId
The AppWidget id under which to bind the provider.
user
The user id in which the provider resides.
provider
The component name of the provider.
options
An optional Bundle containing options for the AppWidget.

Returns

Documentation for this section has not yet been entered.

Remarks

Set the provider for a given appWidgetId if the caller has a permission.

Note: You need the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#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 3