Język

WidgetFeatures Enum

Definition

Specifies widget feature hints for an app widget host.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum WidgetFeatures
[<System.Flags>]
type WidgetFeatures = 
Inheritance
WidgetFeatures
Attributes

Fields

Name Value Description
Reconfigurable 1

The widget can be reconfigured anytime after it is bound by starting the configure activity.

Android reference for android.appwidget.AppWidgetProviderInfo.WIDGET_FEATURE_RECONFIGURABLE.

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.

HideFromPicker 2

The widget is added directly by the app, and the host may hide this widget when providing the user with the list of available widgets to choose from.

Android reference for android.appwidget.AppWidgetProviderInfo.WIDGET_FEATURE_HIDE_FROM_PICKER.

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.

ConfigurationOptional 4

The widget provides a default configuration. The host may choose not to launch the provided configuration activity.

Android reference for android.appwidget.AppWidgetProviderInfo.WIDGET_FEATURE_CONFIGURATION_OPTIONAL.

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.

Remarks

Combine these flags with a bitwise OR to set WidgetFeatures. The flags describe support for configuration and widget picker features. They are hints to the host and do not change the widget's behavior by themselves.

Android 16 source for the widget feature flags.

Applies to