MessageInfo

public final class MessageInfo
extends Object implements NavigationTemplate.NavigationInfo

java.lang.Object
   ↳ androidx.car.app.navigation.model.MessageInfo


Represents a message that can be shown in the NavigationTemplate.

Summary

Nested classes

class MessageInfo.Builder

A builder of MessageInfo

Public methods

boolean equals(Object other)
CarIcon getImage()

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

CarText getText()

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

CarText getTitle()

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

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getImage

public CarIcon getImage ()

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

Returns
CarIcon

getText

public CarText getText ()

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

Returns
CarText

getTitle

public CarText getTitle ()

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

Returns
CarText

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String