CarMessage
@CarProtocol
@RequiresCarApi(value = 7)
class CarMessage
Represents a single message in a ConversationItem
Summary
Nested types |
|---|
class CarMessage.BuilderA builder for |
Public functions |
|
|---|---|
Boolean |
|
CarText? |
getBody()Returns a |
String? |
Returns a |
Uri? |
Returns a |
Long |
Returns a |
Person? |
Returns a |
Int |
hashCode() |
Boolean |
isRead()Returns a |
Public functions
getBody
fun getBody(): CarText?
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
fun getMultimediaMimeType(): String?
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
fun getMultimediaUri(): Uri?
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
fun getReceivedTimeEpochMillis(): Long
Returns a long representing the message timestamp (in epoch millis)