public static class Notification.CarExtender.Builder extends Object
Notification.CarExtender.UnreadConversation
objects.Constructor and Description |
---|
Builder(String name)
Constructs a new builder for
Notification.CarExtender.UnreadConversation . |
Modifier and Type | Method and Description |
---|---|
Notification.CarExtender.Builder |
addMessage(String message)
Appends a new unread message to the list of messages for this conversation.
|
Notification.CarExtender.UnreadConversation |
build()
Builds a new unread conversation object.
|
Notification.CarExtender.Builder |
setLatestTimestamp(long timestamp)
Sets the timestamp of the most recent message in an unread conversation.
|
Notification.CarExtender.Builder |
setReadPendingIntent(PendingIntent pendingIntent)
Sets the pending intent that will be sent once the messages in this notification
are read.
|
Notification.CarExtender.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)
Notification.CarExtender.UnreadConversation
.name
- The name of the other participant in the conversation.public Notification.CarExtender.Builder addMessage(String message)
message
- The text of the new unread message.public Notification.CarExtender.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.Notification.CarExtender.UnreadConversation.getRemoteInput()
,
Notification.CarExtender.UnreadConversation.getReplyPendingIntent()
public Notification.CarExtender.Builder setReadPendingIntent(PendingIntent pendingIntent)
pendingIntent
- The pending intent to use.public Notification.CarExtender.Builder setLatestTimestamp(long timestamp)
timestamp
- The timestamp of the most recent message in the conversation.public Notification.CarExtender.UnreadConversation build()