LongMessageTemplate

@RequiresCarApi(value = 2)
public final class LongMessageTemplate implements Template


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.
See also
onGetTemplate

Summary

Nested types

@RequiresCarApi(value = 2)
public final class LongMessageTemplate.Builder

A builder of LongMessageTemplate.

Public methods

boolean
@Nullable ActionStrip

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

@NonNull List<Action>

Returns the list of actions to display in the template.

@Nullable Action

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

@NonNull CarText

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

@Nullable CarText

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

int
@NonNull String

Public methods

equals

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

getActionStrip

Added in 1.1.0
public @Nullable ActionStrip getActionStrip()

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

See also
setActionStrip

getActions

Added in 1.1.0
public @NonNull List<ActiongetActions()

Returns the list of actions to display in the template.

See also
addAction

getHeaderAction

Added in 1.1.0
public @Nullable Action getHeaderAction()

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

See also
setHeaderAction

getMessage

Added in 1.1.0
public @NonNull CarText getMessage()

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

See also
Builder

getTitle

Added in 1.1.0
public @Nullable CarText getTitle()

Returns the title of the template 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()