语言

Notification.MessagingStyle.SetGroupConversation(Boolean) 方法

定义

设置此会话通知是否表示组。

[Android.Runtime.Register("setGroupConversation", "(Z)Landroid/app/Notification$MessagingStyle;", "GetSetGroupConversation_ZHandler", ApiSince=28)]
public virtual Android.App.Notification.MessagingStyle? SetGroupConversation(bool isGroupConversation);
[<Android.Runtime.Register("setGroupConversation", "(Z)Landroid/app/Notification$MessagingStyle;", "GetSetGroupConversation_ZHandler", ApiSince=28)>]
abstract member SetGroupConversation : bool -> Android.App.Notification.MessagingStyle
override this.SetGroupConversation : bool -> Android.App.Notification.MessagingStyle

参数

isGroupConversation
Boolean

boolean:如果会话表示组,则为 true;否则为 false。

返回

此方法链接的此对象

特性

注解

设置此会话通知是否表示组。 如果应用面向 Android P,则如果应用想要显示带 Notification.Builder.setLargeIcon(Bitmap)的 largeIcon 集,则这是必需的,否则它将被隐藏。

Android 参考。android.app.Notification.MessagingStyle.setGroupConversation

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

适用于