語言

Notification.MessagingStyle.AddHistoricMessage 方法

定義

在此通知中新增訊息以提供歷史背景。

[Android.Runtime.Register("addHistoricMessage", "(Landroid/app/Notification$MessagingStyle$Message;)Landroid/app/Notification$MessagingStyle;", "GetAddHistoricMessage_Landroid_app_Notification_MessagingStyle_Message_Handler", ApiSince=26)]
public virtual Android.App.Notification.MessagingStyle? AddHistoricMessage(Android.App.Notification.MessagingStyle.Message? message);
[<Android.Runtime.Register("addHistoricMessage", "(Landroid/app/Notification$MessagingStyle$Message;)Landroid/app/Notification$MessagingStyle;", "GetAddHistoricMessage_Landroid_app_Notification_MessagingStyle_Message_Handler", ApiSince=26)>]
abstract member AddHistoricMessage : Android.App.Notification.MessagingStyle.Message -> Android.App.Notification.MessagingStyle
override this.AddHistoricMessage : Android.App.Notification.MessagingStyle.Message -> Android.App.Notification.MessagingStyle

參數

message
Notification.MessagingStyle.Message

Notification.MessagingStyle.Message:將加入的歷史訊息

傳回

此物件用於方法鏈結

屬性

備註

在此通知中新增訊息以提供歷史背景。 若訊息不是通知的主要主題,但可能為對話提供背景,則應將其列為歷史訊息。 系統可選擇僅在相關時呈現,例如透過 RemoteInput 回覆訊息時。 訊息應依時間順序添加,即最舊的先,最新的最後。

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

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

適用於