<license>

Syntax:

<license>string</license>

Description:

The <license> element specifies the end-user license agreement or a copyright statement for a BlackBerry WebWorks app. This element is optional. If you specify this element, you can implement a feature to prompt BlackBerry device users to accept or decline the license agreement when they run the application for the first time. After users agree to the license agreement, the prompt does not appear when they run the application again.

The contents of the license agreement are also available on the About screen for the app.

Occurrences:

Zero or one.

Parent elements:

<widget>

Child elements:

None.

Content:

A string value representing an end-user license agreement or a copyright statement.

Attributes:

You can define the following attributes for this element:

Attribute

Description

xml:lang

Optional. The xml:lang attribute specifies the language that is used in the element. For more information about this attribute, visit www.w3.org.

its:dir

Optional. The its:dir attribute specifies the directionality of the language. For example, its:dir="rtl" specifies a language that is written from right to left. For more information about this attribute, visit www.w3.org.

You can use this attribute for localization.

href

Optional. The href attribute specifies a web address for a web page that contains content or license information.

Example:

<license>
   Example license
   Copyright © 2012 My Corp.
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
   BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
   ACTION OF CONTRACT, INSULT OR OTHERWISE, ARISING FROM, OUT OF OR IN
   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   SOFTWARE.
</license>

Last modified: 2014-10-09



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus