語言

Notification.MessagingStyle.IsGroupConversation 屬性

定義

如果此通知代表群組對話,則回傳真,否則為假。

public virtual bool IsGroupConversation { [Android.Runtime.Register("isGroupConversation", "()Z", "GetIsGroupConversationHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("isGroupConversation", "()Z", "GetIsGroupConversationHandler", ApiSince=28)>]
member this.IsGroupConversation : bool

屬性值

屬性

備註

如果此通知代表群組對話,則回傳真,否則為假。 如果產生此訊息風格的應用程式針對的 SDK 版本低於 Build.VERSION_CODES。P,此方法會依賴於對話標題是否設定;若對話標題為非空值,則回傳 true;否則回傳 false。 Build.VERSION_CODES。P 向前,此方法回傳由 setGroupConversation(布林值)設定的內容,允許有名稱的非群組對話。

另請參閱:

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

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

適用於