Language

Notification.MessagingStyle.AddHistoricMessage Method

Definition

Adds a Message for historic context in this notification.

[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

Parameters

message
Notification.MessagingStyle.Message

Notification.MessagingStyle.Message: The historic Message to be added

Returns

this object for method chaining

Attributes

Remarks

Adds a Message for historic context in this notification. Messages should be added as historic if they are not the main subject of the notification but may give context to a conversation. The system may choose to present them only when relevant, e.g. when replying to a message through a RemoteInput. The messages should be added in chronologic order, i.e. the oldest first, the newest last.

Android reference for android.app.Notification.MessagingStyle.addHistoricMessage.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to