LongMessageTemplate

public final class LongMessageTemplate
extends Object implements Template

java.lang.Object
   ↳ androidx.car.app.model.LongMessageTemplate


A template for displaying a long text, which could be several paragraphs long, with associated actions.

Template Restrictions

This template's body is only available to the user while the car is parked and does not count against the template quota.

Summary

Nested classes

class LongMessageTemplate.Builder

A builder of LongMessageTemplate

Public methods

boolean equals(Object other)
ActionStrip getActionStrip()

Returns the ActionStrip for this template or null if not set.

List<Action> getActions()

Returns the list of actions to display in the template.

Action getHeaderAction()

Returns the Action that is set to be displayed in the header of the template, or null if not set.

CarText getMessage()

Returns the message to display in the template, which could be several paragraphs long.

CarText getTitle()

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

int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

getActionStrip

public ActionStrip getActionStrip ()

Returns the ActionStrip for this template or null if not set.

Returns
ActionStrip

getActions

public List<Action> getActions ()

Returns the list of actions to display in the template.

Returns
List<Action>

getHeaderAction

public Action getHeaderAction ()

Returns the Action that is set to be displayed in the header of the template, or null if not set.

Returns
Action

getMessage

public CarText getMessage ()

Returns the message to display in the template, which could be several paragraphs long.

Returns
CarText

getTitle

public CarText getTitle ()

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

Returns
CarText

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String