Share via


AppWidgetManager.RemoveWidgetPreview(ComponentName, AppWidgetCategory) Method

Definition

Remove this provider's preview for the specified widget categories.

[Android.Runtime.Register("removeWidgetPreview", "(Landroid/content/ComponentName;I)V", "GetRemoveWidgetPreview_Landroid_content_ComponentName_IHandler", ApiSince=35)]
public virtual void RemoveWidgetPreview (Android.Content.ComponentName provider, Android.Appwidget.AppWidgetCategory widgetCategories);
[<Android.Runtime.Register("removeWidgetPreview", "(Landroid/content/ComponentName;I)V", "GetRemoveWidgetPreview_Landroid_content_ComponentName_IHandler", ApiSince=35)>]
abstract member RemoveWidgetPreview : Android.Content.ComponentName * Android.Appwidget.AppWidgetCategory -> unit
override this.RemoveWidgetPreview : Android.Content.ComponentName * Android.Appwidget.AppWidgetCategory -> unit

Parameters

provider
ComponentName

The AppWidgetProvider to remove previews for.

widgetCategories
AppWidgetCategory

The categories of the preview to remove. For example, removing the preview for WIDGET_CATEGORY_HOME_SCREEN | WIDGET_CATEGORY_KEYGUARD will remove the previews for both categories.

Attributes

Remarks

Remove this provider's preview for the specified widget categories. If the provider does not have a preview for the specified widget category, this is a no-op.

Java documentation for android.appwidget.AppWidgetManager.removeWidgetPreview(android.content.ComponentName, int).

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