次の方法で共有


NotificationChannel.SetBypassDnd(Boolean) Method

Definition

Sets whether or not notifications posted to this channel can interrupt the user in android.app.NotificationManager.Policy#INTERRUPTION_FILTER_PRIORITY mode.

[Android.Runtime.Register("setBypassDnd", "(Z)V", "", ApiSince=26)]
public void SetBypassDnd (bool bypassDnd);
[<Android.Runtime.Register("setBypassDnd", "(Z)V", "", ApiSince=26)>]
member this.SetBypassDnd : bool -> unit

Parameters

bypassDnd
Boolean
Attributes

Remarks

Sets whether or not notifications posted to this channel can interrupt the user in android.app.NotificationManager.Policy#INTERRUPTION_FILTER_PRIORITY mode.

Only modifiable by the system and notification ranker.

Java documentation for android.app.NotificationChannel.setBypassDnd(boolean).

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