Notification.Builder.SetGroup(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将此通知设置为共享同一密钥的一组通知的一部分。
[Android.Runtime.Register("setGroup", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetGroup_Ljava_lang_String_Handler")]
public virtual Android.App.Notification.Builder SetGroup(string? groupKey);
[<Android.Runtime.Register("setGroup", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetGroup_Ljava_lang_String_Handler")>]
abstract member SetGroup : string -> Android.App.Notification.Builder
override this.SetGroup : string -> Android.App.Notification.Builder
参数
- groupKey
- String
字符串:组的组键
返回
此 Android.App.Notification.Builder 实例允许链接调用。
- 特性
注解
将此通知设置为共享同一密钥的一组通知的一部分。 分组通知可能会显示在支持此类呈现的设备上的群集或堆栈中。 若要将此通知设置为其组的摘要,请调用 setGroupSummary(boolean)。 可以使用 setSortKey(String)为组成员指定排序顺序。
Android 参考。android.app.Notification.Builder.setGroup
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。