Notification.CarExtender.Builder
public
static
class
Notification.CarExtender.Builder
extends Object
Builder class for CarExtender.UnreadConversation
objects.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public constructors
Public methods
addMessage
public Notification.CarExtender.Builder addMessage (String message)
Appends a new unread message to the list of messages for this conversation.
The messages should be added from oldest to newest.
Parameters |
message |
String : The text of the new unread message. |
setLatestTimestamp
public Notification.CarExtender.Builder setLatestTimestamp (long timestamp)
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.
Parameters |
timestamp |
long : The timestamp of the most recent message in the conversation. |
setReadPendingIntent
public Notification.CarExtender.Builder setReadPendingIntent (PendingIntent pendingIntent)
Sets the pending intent that will be sent once the messages in this notification
are read.
Parameters |
pendingIntent |
PendingIntent : The pending intent to use. |
public Notification.CarExtender.Builder setReplyAction (PendingIntent pendingIntent,
RemoteInput remoteInput)
Sets the pending intent and remote input which will convey the reply to this
notification.
Parameters |
pendingIntent |
PendingIntent : The pending intent which will be triggered on a reply. |
remoteInput |
RemoteInput : The remote input parcelable which will carry the reply. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]