<rim:permissions>

Syntax:

<rim:permissions>
    <rim:permit>permission_string</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">

Occurrences:

One or none.

Parent elements:

<platform>

Child elements:

<rim:permit>

Content:

None.

Attributes:

None.

Example:

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-09-29



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

comments powered by Disqus