Template

data class Template(val version: TemplateVersion, val data: VpaMessage) : Parcelable

Templates are visual metadata that can be provided by a VPA as a result of certain requests. The UI can show this data in order to describe or enhance a user's voice interaction.

Constructors

Link copied to clipboard
fun Template(version: TemplateVersion, data: VpaMessage)

Properties

Link copied to clipboard
val data: VpaMessage

A VpaMessage containing the visual metadata to be used to render the template. The metadata format is VPA-specific and defined in the VPA's own documentation.

Link copied to clipboard
val version: TemplateVersion

The version of the template metadata format.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)