Share via


AppWidgetProviderInfo.WidgetCategoryNotKeyguard Field

Definition

Caution

This constant will be removed in the future version. Use Android.Appwidget.AppWidgetCategory enum directly instead of this field.

Indicates that the widget should never be shown on the keyguard.

[Android.Runtime.Register("WIDGET_CATEGORY_NOT_KEYGUARD", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Appwidget.AppWidgetCategory enum directly instead of this field.", true)]
public const Android.Appwidget.AppWidgetCategory WidgetCategoryNotKeyguard = 8;
[<Android.Runtime.Register("WIDGET_CATEGORY_NOT_KEYGUARD", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Appwidget.AppWidgetCategory enum directly instead of this field.", true)>]
val mutable WidgetCategoryNotKeyguard : Android.Appwidget.AppWidgetCategory

Field Value

Value = 8

Implements

Attributes

Remarks

Indicates that the widget should never be shown on the keyguard.

Some keyguard style features may decide that #WIDGET_CATEGORY_KEYGUARD isn't required to be added by an app to show on the feature when chosen by a user. This category allows for a stronger statement about placement of the widget that, even in the above case, this widget should not be offered on the keyguard.

Setting this category doesn't change the behavior of AppWidgetManager queries, it is the responsibility of the widget surface to respect this value.

Java documentation for android.appwidget.AppWidgetProviderInfo.WIDGET_CATEGORY_NOT_KEYGUARD.

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