ConversationItem

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


Represents a conversation

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)

Public methods

equals

Added in 1.4.0-rc02
public boolean equals(@Nullable Object other)

getActions

Added in 1.4.0-rc02
public @NonNull List<ActiongetActions()

Returns the list of additional actions.

See also
addAction

getConversationCallbackDelegate

Added in 1.4.0-rc02
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-rc02
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

Added in 1.4.0-rc02
public int hashCode()

isGroupConversation

Added in 1.3.0
public boolean isGroupConversation()

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