Contents

descriptiveAlertTemplate

Displays large amounts of important information to the user.

Overview

Use the descriptiveAlertTemplate element to display a significant amount of important information, such as a Terms of Service page. A title is displayed at the top of the screen with a large text area directly below it. An area containing buttons is located along the bottom of the screen. The following figure shows the basic layout for a descriptiveAlertTemplate page. The theme for the descriptive alert template defaults to the system preference.

[Image]

Main Elements

The following listing shows the main elements of the descriptiveAlertTemplate in TVML format.

<descriptiveAlertTemplate>
   <background>

   </background>
   <title>Title</title>
   <img />
   <description>Description</description>
   <row>
      <button>

      </button>
   </row>
</descriptiveAlertTemplate>

Element Descriptions

background

Background elements, such as audio.

button

A button for the alert. A button typically lets the user dismiss the alert or bring up a new template page.

description

The main text for the alert.

img

An image associated with the alert box.

row

A row of buttons.

title

The title for the descriptive alert page.

Example

The following listing shows the TVML for a descriptiveAlertTemplate example.

<document>
   <descriptiveAlertTemplate>
      <title>Terms of Service</title>
      <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</description>
      <row>
         <button>
            <text>Accept</text>
         </button>
         <button>
            <text>Decline</text>
         </button>
      </row>
   </descriptiveAlertTemplate>
</document>

The following figure shows the output for the above example:

[Image]

Topics

Valid TVML Attributes

See Also

Full-Page Templates