NotificationChannel.SetConversationId(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這讓這個頻道以討論為中心。
[Android.Runtime.Register("setConversationId", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=30)]
public void SetConversationId(string parentChannelId, string conversationId);
[<Android.Runtime.Register("setConversationId", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=30)>]
member this.SetConversationId : string * string -> unit
參數
- parentChannelId
- String
#getId()在沒有特定對話 ID 的情況下,這類通知會被發佈的通用頻道的 id}。例如,如果這個頻道代表「來自 A 個人的訊息」,那麼父頻道就會是「訊息」。
- conversationId
- String
ShortcutInfo#getId()代表該頻道對話的捷徑。
- 屬性
備註
這讓這個頻道以討論為中心。 針對以對話為中心的頻道,可能會暴露不同的設定與功能。
Android 參考資料。android.app.NotificationChannel.setConversationId
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。