语言

Notification.Builder.SetGroupSummary(Boolean) 方法

定义

将此通知设置为一组通知的组摘要。

[Android.Runtime.Register("setGroupSummary", "(Z)Landroid/app/Notification$Builder;", "GetSetGroupSummary_ZHandler")]
public virtual Android.App.Notification.Builder SetGroupSummary(bool isGroupSummary);
[<Android.Runtime.Register("setGroupSummary", "(Z)Landroid/app/Notification$Builder;", "GetSetGroupSummary_ZHandler")>]
abstract member SetGroupSummary : bool -> Android.App.Notification.Builder
override this.SetGroupSummary : bool -> Android.App.Notification.Builder

参数

isGroupSummary
Boolean

布尔值:此通知是否应为组摘要

返回

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

特性

注解

将此通知设置为一组通知的组摘要。 分组通知可能会显示在支持此类呈现的设备上的群集或堆栈中。 还需要使用 setGroup(String)设置组密钥。 如果组中包含的通知太少,则可能会禁止显示组摘要。

Android 参考。android.app.Notification.Builder.setGroupSummary

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

适用于