語言

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

布林值:如果對話代表一個群體,則為真;否則為假。

傳回

此物件用於方法鏈結

屬性

備註

設定此對話通知是否代表群組。 如果應用程式針對 Android P,若想用 Notification.Builder.setLargeIcon(Bitmap)顯示 largeIcon 設定,這是必須的,否則該圖示會被隱藏。

本頁內容與程式碼範例受內容授權條款所規範。 Java 和 OpenJDK 是 Oracle 和/或其關係企業的商標或注冊商標。

最後更新於 2026-08-03 UTC。

Android 參考資料。android.app.Notification.MessagingStyle.setGroupConversation

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

適用於