AppWidgetProvider.OnDisabled(Context) Method

Definition

Called in response to the AppWidgetManager#ACTION_APPWIDGET_DISABLED broadcast, which is sent when the last AppWidget instance for this provider is deleted.

[Android.Runtime.Register("onDisabled", "(Landroid/content/Context;)V", "GetOnDisabled_Landroid_content_Context_Handler")]
public virtual void OnDisabled (Android.Content.Context? context);
[<Android.Runtime.Register("onDisabled", "(Landroid/content/Context;)V", "GetOnDisabled_Landroid_content_Context_Handler")>]
abstract member OnDisabled : Android.Content.Context -> unit
override this.OnDisabled : Android.Content.Context -> unit

Parameters

context
Context

The android.content.Context Context in which this receiver is running.

Attributes

Remarks

Called in response to the AppWidgetManager#ACTION_APPWIDGET_DISABLED broadcast, which is sent when the last AppWidget instance for this provider is deleted. Override this method to implement your own AppWidget functionality.

{

Java documentation for android.appwidget.AppWidgetProvider.onDisabled(android.content.Context).

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