Share via


NotificationManager.ImportanceMin Field

Definition

Caution

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

Min notification importance: only shows in the shade, below the fold.

[Android.Runtime.Register("IMPORTANCE_MIN", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationImportance enum directly instead of this field.", true)]
public const Android.App.NotificationImportance ImportanceMin = 1;
[<Android.Runtime.Register("IMPORTANCE_MIN", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationImportance enum directly instead of this field.", true)>]
val mutable ImportanceMin : Android.App.NotificationImportance

Field Value

Value = 1
Attributes

Remarks

Min notification importance: only shows in the shade, below the fold. This should not be used with Service#startForeground(int, Notification) Service.startForeground since a foreground service is supposed to be something the user cares about so it does not make semantic sense to mark its notification as minimum importance. If you do this as of Android version android.os.Build.VERSION_CODES#O, the system will show a higher-priority notification about your app running in the background.

Java documentation for android.app.NotificationManager.IMPORTANCE_MIN.

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