public static class NotificationCompat.CarExtender.UnreadConversation.Builder extends Object
NotificationCompat.CarExtender.UnreadConversation
objects.Constructor and Description |
---|
Builder(String name)
Constructs a new builder for
NotificationCompat.CarExtender.UnreadConversation . |
Modifier and Type | Method and Description |
---|---|
NotificationCompat.CarExtender.UnreadConversation.Builder |
addMessage(String message)
Appends a new unread message to the list of messages for this conversation.
|
NotificationCompat.CarExtender.UnreadConversation |
build()
Builds a new unread conversation object.
|
NotificationCompat.CarExtender.UnreadConversation.Builder |
setLatestTimestamp(long timestamp)
Sets the timestamp of the most recent message in an unread conversation.
|
NotificationCompat.CarExtender.UnreadConversation.Builder |
setReadPendingIntent(PendingIntent pendingIntent)
Sets the pending intent that will be sent once the messages in this notification
are read.
|
NotificationCompat.CarExtender.UnreadConversation.Builder |
setReplyAction(PendingIntent pendingIntent,
RemoteInput remoteInput)
Sets the pending intent and remote input which will convey the reply to this
notification.
|
public Builder(String name)
NotificationCompat.CarExtender.UnreadConversation
.name
- The name of the other participant in the conversation.public NotificationCompat.CarExtender.UnreadConversation.Builder addMessage(String message)
message
- The text of the new unread message.public NotificationCompat.CarExtender.UnreadConversation.Builder setReplyAction(PendingIntent pendingIntent, RemoteInput remoteInput)
pendingIntent
- The pending intent which will be triggered on a reply.remoteInput
- The remote input parcelable which will carry the reply.NotificationCompat.CarExtender.UnreadConversation.getRemoteInput()
,
NotificationCompat.CarExtender.UnreadConversation.getReplyPendingIntent()
public NotificationCompat.CarExtender.UnreadConversation.Builder setReadPendingIntent(PendingIntent pendingIntent)
pendingIntent
- The pending intent to use.public NotificationCompat.CarExtender.UnreadConversation.Builder setLatestTimestamp(long timestamp)
timestamp
- The timestamp of the most recent message in the conversation.public NotificationCompat.CarExtender.UnreadConversation build()