rim:permissions element

Syntax

<rim:permissions>
    <rim:permit> ...</rim:permit>
</rim:permissions>

Description

The <rim:permissions> element is a container element for the <rim:permit> element, which specifies the permissions for various features in a BlackBerry WebWorks application.

See the <rim:permit> element for information about permission features.

You must include the following namespace declaration in the parent <widget> element to use the <rim:permissions> element:

xmlns:rim="http://www.blackberry.com/ns/widgets">

Parent elements

<platform>

Child elements

<rim:permit>

Occurrences

One

Example: Specifying permissions

The following sample demonstrates how to set the permissions for reading and writing files, reading GPS location information, and accessing camera data.

<widget xmlns:rim="http://www.blackberry.com/ns/widgets">
.
.
.
    <platform name="blackberry10">
        <rim:permissions>
            <rim:permit>access_shared</rim:permit>
            <rim:permit>read_geolocation</rim:permit>
            <rim:permit>use_camera</rim:permit>
        </rim:permissions>
    </platform>
<widget>

Last modified: 2014-05-14



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

comments powered by Disqus