NotificationManager.AreBubblesAllowed 方法

定义

获取此应用发布的所有通知是否可以显示在通知阴影之外,并浮动在其他应用的内容上。

[Android.Runtime.Register("areBubblesAllowed", "()Z", "GetAreBubblesAllowedHandler", ApiSince=29)]
public virtual bool AreBubblesAllowed();
[<Android.Runtime.Register("areBubblesAllowed", "()Z", "GetAreBubblesAllowedHandler", ApiSince=29)>]
abstract member AreBubblesAllowed : unit -> bool
override this.AreBubblesAllowed : unit -> bool

返回

属性

注解

获取此应用发布的所有通知是否可以显示在通知阴影之外,并浮动在其他应用的内容上。

对于发布到不允许气泡的NotificationChannel#canBubble()通道的通知,将忽略此值。

此成员已弃用。 请改用 #getBubblePreference()

Java文档android.app.NotificationManager.areBubblesAllowed()

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

适用于