Sprache

Notification.CarExtender.Builder.SetLatestTimestamp(Int64) Method

Definition

Sets the timestamp of the most recent message in an unread conversation.

[Android.Runtime.Register("setLatestTimestamp", "(J)Landroid/app/Notification$CarExtender$Builder;", "GetSetLatestTimestamp_JHandler", ApiSince=23)]
public virtual Android.App.Notification.CarExtender.Builder SetLatestTimestamp(long timestamp);
[<Android.Runtime.Register("setLatestTimestamp", "(J)Landroid/app/Notification$CarExtender$Builder;", "GetSetLatestTimestamp_JHandler", ApiSince=23)>]
abstract member SetLatestTimestamp : int64 -> Android.App.Notification.CarExtender.Builder
override this.SetLatestTimestamp : int64 -> Android.App.Notification.CarExtender.Builder

Parameters

timestamp
Int64

long: the timestamp of the most recent message in the conversation

Returns

This Android.App.Notification.CarExtender.Builder instance, allowing calls to be chained.

Attributes

Remarks

Sets the timestamp of the most recent message in an unread conversation. If a messaging notification has been posted by your application and has not yet been cancelled, posting a later notification with the same id and tag but without a newer timestamp may result in Android Auto not displaying a heads up notification for the later notification.

Android reference for android.app.Notification.CarExtender.Builder.setLatestTimestamp.

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