语言

Notification.BubbleMetadata.Builder.SetSuppressNotification(Boolean) 方法

定义

设置气泡是否将在通知阴影中不带关联通知的情况下发布。

[Android.Runtime.Register("setSuppressNotification", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetSuppressNotification(bool shouldSuppressNotif);
[<Android.Runtime.Register("setSuppressNotification", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetSuppressNotification : bool -> Android.App.Notification.BubbleMetadata.Builder

参数

shouldSuppressNotif
Boolean

boolean

返回

此 Android.App.Notification.BubbleMetadata.Builder 实例允许链接调用。

特性

注解

设置气泡是否将在通知阴影中不带关联通知的情况下发布。 通常,只有在用户已执行请求或创建气泡的操作,或者用户已看到通知中的内容并且通知不再相关时,才应设置此标志。

设置此标志是可选的;它默认为 false。

Android 参考。android.app.Notification.BubbleMetadata.Builder.setSuppressNotification

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于