Google is committed to advancing racial equity for Black communities. See how.

MessageTemplate

public final class MessageTemplate
extends Object implements Template

java.lang.Object
   ↳ com.google.android.libraries.car.app.model.MessageTemplate


A template for displaying a message and associated actions.

Template Restrictions

In regards to template refreshes, as described in Screen.getTemplate(), this template is considered a refresh of a previous one if the title and messages have not changed.

Summary

Nested classes

class MessageTemplate.Builder

A builder of MessageTemplate

Public methods

static MessageTemplate.Builder builder(CharSequence message)

Constructs a new builder of MessageTemplate.

boolean equals(Object other)
int hashCode()
String toString()

Inherited methods

Public methods

builder

public static MessageTemplate.Builder builder (CharSequence message)

Constructs a new builder of MessageTemplate.

Parameters
message CharSequence

Returns
MessageTemplate.Builder

equals

public boolean equals (Object other)

Parameters
other Object

Returns
boolean

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String