NotificationManager.ImportanceMin Feld

Definition

Achtung

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

Feldwert

Value = 1
Attribute

Hinweise

Min notification importance: only shows in the shade, below the fold. Dies sollte nicht verwendet Service#startForeground(int, Notification) Service.startForeground werden, da ein Vordergrunddienst etwas sein soll, das der Benutzer interessiert, damit es nicht semantisch sinnvoll ist, seine Benachrichtigung als minimale Wichtigkeit zu kennzeichnen. Wenn Sie dies als Android-Version android.os.Build.VERSION_CODES#Otun, zeigt das System eine Benachrichtigung mit höherer Priorität an, dass Ihre App im Hintergrund ausgeführt wird.

Java Dokumentation für android.app.NotificationManager.IMPORTANCE_MIN.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: