Partager via


ZenPolicy.PriorityChannelsAllowed Property

Definition

Whether this policy allows NotificationChannel channels marked as NotificationChannel#canBypassDnd() to bypass DND.

public Android.Service.Notification.StateType PriorityChannelsAllowed { [Android.Runtime.Register("getPriorityChannelsAllowed", "()I", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getPriorityChannelsAllowed", "()I", "", ApiSince=35)>]
member this.PriorityChannelsAllowed : Android.Service.Notification.StateType

Property Value

Attributes

Remarks

Whether this policy allows NotificationChannel channels marked as NotificationChannel#canBypassDnd() to bypass DND. If #STATE_ALLOW, these channels may bypass; if #STATE_DISALLOW, then even notifications from channels with NotificationChannel#canBypassDnd() will be intercepted.

Java documentation for android.service.notification.ZenPolicy.getPriorityChannelsAllowed().

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