语言

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

定义

设置气泡是否将发布到其扩展状态。

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

参数

shouldExpand
Boolean

boolean

返回

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

特性

注解

设置气泡是否将发布到其扩展状态。 如果发布气泡的应用不在前台,则此标志无效。 如果应用可见且在屏幕上可见,则被视为前台服务,请注意前台服务不符合条件。

通常,仅当用户已执行请求或创建气泡的操作时,才应设置此标志。

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

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

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

适用于