MessageInfo

@CarProtocol
public final class MessageInfo implements NavigationTemplate.NavigationInfo


Represents a message that can be shown in the NavigationTemplate.

Summary

Nested types

public final class MessageInfo.Builder

A builder of MessageInfo.

Public methods

boolean
@Nullable CarIcon

Returns the image to display along with the message or null if not set.

@Nullable CarText

Returns the text to display with the message or null if not set.

@Nullable CarText

Returns the title of the message or null if not set.

int
@NonNull String

Public methods

equals

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

getImage

Added in 1.0.0
public @Nullable CarIcon getImage()

Returns the image to display along with the message or null if not set.

See also
setImage

getText

Added in 1.0.0
public @Nullable CarText getText()

Returns the text to display with the message or null if not set.

See also
setText

getTitle

Added in 1.0.0
public @Nullable CarText getTitle()

Returns the title of the message or null if not set.

See also
setTitle

hashCode

Added in 1.4.0-rc02
public int hashCode()

toString

Added in 1.4.0-rc02
public @NonNull String toString()