The <action> element specifies the actions that are associated with the invocation target. Actions are strings that identify the operations that your application is registered to handle. Actions can be discoverable actions or menu actions. Menu actions always have a label and icon associated with them, while discoverable actions do not.
One or more.
A string value representing the actions that are available to query.
The following predefined, discoverable actions are examples of actions that are available. These actions do not have graphics or labels represented on the user interface but can be queried.
- Describes the request to open a card or viewer based on the given MIME type, URI, or file extension. This action should be used in cases where you register a card or viewer as a default handler.
- Describes the act of notification which can be associated with different types, such as the BlackBerry Push Service.
The following fixed menu actions are examples of actions that are available. These actions are represented in the OS using graphics or labels and can differ based on the locale and region settings.
- Describes the request to open associated content in a different application. You can use this action in cases where you want a full-context switch from one application to another. Use this action in scenarios where a full application is registering as a default handler.
- Describes the request to set the associated content in a given context. For example, wallpaper, images of contacts, BlackBerry Messenger SDK avatars, ring-tones, and so on.
- Describes the request to share associated content. For example, you can share an image to a Bluetooth target, which would transfer the image to another device via Bluetooth.
<platform name="blackberry10"> <rim:invoke-target id="com.domain.subdomain.appname.app"> <type>APPLICATION</type> <filter> <action>bb.action.OPEN</action> <action>bb.action.SET</action> <mime-type>text/*</mime-type> <property var="exts" value="bmp,css,html,js" /> <property var="uris" value="data://local,file://" /> </filter> </rim:invoke-target> </platform>
Last modified: 2015-04-16