語言

Notification.Builder.SetGroup(String) 方法

定義

將此通知設為共用同一金鑰的通知群組。

[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

String:該群組的群組鍵

傳回

這個 Android.App.Notification.Builder 實例,允許通話串接。

屬性

備註

將此通知設為共用同一金鑰的通知群組。 在支援此類渲染的裝置上,群組通知可能會以叢集或堆疊形式顯示。 若要將此通知設為該群組的摘要,也可呼叫 setGroupSummary(boolean)。 可透過 setSortKey(String) 為群組成員指定排序順序。

Android 參考資料。android.app.Notification.Builder.setGroup

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於