CarMessage
@CarProtocol
@RequiresCarApi(value = 7)
public class CarMessage
Represents a single message in a ConversationItem
Summary
Nested types |
|---|
public final class CarMessage.BuilderA builder for |
Public methods |
|
|---|---|
boolean |
|
@Nullable CarText |
getBody()Returns a |
@Nullable String |
Returns a |
@Nullable Uri |
Returns a |
long |
Returns a |
@Nullable Person |
Returns a |
int |
hashCode() |
boolean |
isRead()Returns a |
Public methods
getBody
public @Nullable CarText getBody()
Returns a CarText representing the message body
Messages must have one or both of the following:
- A message body (text)
- A MIME type + URI (image, audio, etc.)
| See also | |
|---|---|
getMultimediaMimeType |
|
getMultimediaUri |
getMultimediaMimeType
public @Nullable String getMultimediaMimeType()
Returns a String representing the MIME type of a multimedia message
Messages must have one or both of the following:
- A message body (text)
- A MIME type + URI (image, audio, etc.)
| See also | |
|---|---|
getBody |
|
getMultimediaUri |
getMultimediaUri
public @Nullable Uri getMultimediaUri()
Returns a Uri pointing to the contents of a multimedia message.
Messages must have one or both of the following:
- A message body (text)
- A MIME type + URI (image, audio, etc.)
| See also | |
|---|---|
getBody |
|
getMultimediaMimeType |
getReceivedTimeEpochMillis
public long getReceivedTimeEpochMillis()
Returns a long representing the message timestamp (in epoch millis)