Language

NotificationChannel.CanBypassDnd Method

Definition

Whether or not notifications posted to this channel can bypass the Do Not Disturb NotificationManager#INTERRUPTION_FILTER_PRIORITY mode when the active policy allows priority channels to bypass notification filtering.

[Android.Runtime.Register("canBypassDnd", "()Z", "", ApiSince=26)]
public bool CanBypassDnd();
[<Android.Runtime.Register("canBypassDnd", "()Z", "", ApiSince=26)>]
member this.CanBypassDnd : unit -> bool

Returns

true if the channel is marked to bypass priority-mode Do Not Disturb filtering; otherwise, false. The active policy must also allow priority-channel bypass.

Attributes

Remarks

Whether or not notifications posted to this channel can bypass the Do Not Disturb NotificationManager.INTERRUPTION_FILTER_PRIORITY mode when the active policy allows priority channels to bypass notification filtering.

Android reference for android.app.NotificationChannel.canBypassDnd.

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