ConversationItem


@CarProtocol
@RequiresCarApi(value = 7)
public class ConversationItem implements Item


Represents a text-based conversation (e.g. IM/SMS messages).

Summary

Nested types

public final class ConversationItem.Builder

A builder for ConversationItem

Public methods

boolean
@NonNull List<Action>

Returns the list of additional actions.

@NonNull ConversationCallbackDelegate

Returns host->client callbacks for this conversation

@Nullable CarIcon

Returns a CarIcon for the conversation, or null if not set

@NonNull String

Returns a unique identifier for the conversation

@NonNull List<CarMessage>

Returns a list of messages for this ConversationItem

@NonNull Person

Returns a Person for the conversation

@NonNull CarText

Returns the title of the conversation

int
boolean

Returns whether this conversation involves 3+ participants (a "group" conversation)

boolean

Returns whether this item can be included in indexed lists.

Public methods

equals

public boolean equals(@Nullable Object other)

getActions

Added in 1.4.0
public @NonNull List<ActiongetActions()

Returns the list of additional actions.

See also
addAction

getConversationCallbackDelegate

Added in 1.4.0
public @NonNull ConversationCallbackDelegate getConversationCallbackDelegate()

Returns host->client callbacks for this conversation

getIcon

Added in 1.3.0
public @Nullable CarIcon getIcon()

Returns a CarIcon for the conversation, or null if not set

getId

Added in 1.3.0
public @NonNull String getId()

Returns a unique identifier for the conversation

See also
setId

getMessages

Added in 1.3.0
public @NonNull List<CarMessagegetMessages()

Returns a list of messages for this ConversationItem

getSelf

Added in 1.4.0
public @NonNull Person getSelf()

Returns a Person for the conversation

getTitle

Added in 1.3.0
public @NonNull CarText getTitle()

Returns the title of the conversation

hashCode

public int hashCode()

isGroupConversation

Added in 1.3.0
public boolean isGroupConversation()

Returns whether this conversation involves 3+ participants (a "group" conversation)

isIndexable

Added in 1.7.0-beta03
@ExperimentalCarApi
public boolean isIndexable()

Returns whether this item can be included in indexed lists.

See also
setIndexable