<splash>

Controls the presentation while the application is loading.

The <splash> tag controls the presentation while the application is loading.

If the <splash> element is present but is empty, a progress bar is displayed while the application is loading. For example:

<canvas>
  <splash/>
<canvas>

The <splash> element may contain view elements, to define the position and behavior of resources that are displayed during the load process; however, these view elements have a limited feature set. For example, the following program positions an image on the canvas, which is removed once the application is loaded. Multiple images can be positioned, and the persistent attribute can be used to leave the views containing these images on the canvas once the load process is complete.

<canvas>
  <splash>
    <view resource="images/logo.png"/>
  </splash>
</canvas>

Also see the contacts example.

Attributes
Name Usage Type (Tag) Type (JS) Default Category
persistent Tag only boolean false final
 

If true, the splash views remain on the canvas after the preload is complete.