NotificationManager.NotificationPolicy Eigenschaft

Definition

Ruft die aktuelle vom Benutzer angegebene Standardbenachrichtigungsrichtlinie ab.

public virtual Android.App.NotificationManager.Policy? NotificationPolicy { [Android.Runtime.Register("getNotificationPolicy", "()Landroid/app/NotificationManager$Policy;", "GetGetNotificationPolicyHandler", ApiSince=23)] get; [Android.Runtime.Register("setNotificationPolicy", "(Landroid/app/NotificationManager$Policy;)V", "GetSetNotificationPolicy_Landroid_app_NotificationManager_Policy_Handler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getNotificationPolicy", "()Landroid/app/NotificationManager$Policy;", "GetGetNotificationPolicyHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setNotificationPolicy", "(Landroid/app/NotificationManager$Policy;)V", "GetSetNotificationPolicy_Landroid_app_NotificationManager_Policy_Handler", ApiSince=23)>]
member this.NotificationPolicy : Android.App.NotificationManager.Policy with get, set

Eigenschaftswert

Attribute

Hinweise

Ruft die aktuelle vom Benutzer angegebene Standardbenachrichtigungsrichtlinie ab. Für Apps, die auf Build.VERSION_CODES ausgerichtet sind. VANILLA_ICE_CREAM und höher (mit einigen Ausnahmen, z. B. Begleitgeräte-Manager), gibt diese Methode stattdessen die richtlinie zurück, die ihrem impliziten AutomaticZenRule zugeordnet ist, sofern vorhanden. Siehe setNotificationPolicy(Policy).

Android-Referenz für android.app.NotificationManager.getNotificationPolicy.

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: