NotificationChannel.Importance Eigenschaft

Definition

Gibt die vom Benutzer angegebene Wichtigkeit zurück, z. B.

public Android.App.NotificationImportance Importance { [Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)] get; [Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)>]
member this.Importance : Android.App.NotificationImportance with get, set

Eigenschaftswert

Der Wert ist einer der folgenden: NotificationManager.IMPORTANCE_UNSPECIFIED NotificationManager.IMPORTANCE_NONE NotificationManager.IMPORTANCE_MIN NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_DEFAULT NotificationManager.IMPORTANCE_HIGH

Attribute

Hinweise

Gibt die angegebene Wichtigkeit des Benutzers zurück, z. B. NotificationManager.IMPORTANCE_LOW für Benachrichtigungen, die in diesem Kanal gepostet wurden. Hinweis: Dieser Wert kann NotificationManager.IMPORTANCE_NONE sein > , aber Benachrichtigungen, die an diesen Kanal gepostet wurden, werden dem Benutzer nicht angezeigt, wenn die übergeordnete NotificationChannelGroup oder App blockiert wird. Siehe NotificationChannelGroup.isBlocked() und NotificationManager.areNotificationsEnabled().

Android-Referenz für android.app.NotificationChannel.getImportance.

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: