<rim:type>

Syntax:

<rim:type>[ application | viewer ]</rim:type>

Description:

The <rim:type> element defines the type of the target.

Occurrences:

One.

Parent elements:

<rim:invoke-target>

Child elements:

None.

Content:

A string value specifying the target type. You can define the target as one of the following types:

application
The target is an application and is started only when required.
viewer
The target reference always spawns a new window and window reparenting is required.

Attributes:

None.

Example:

<rim:invoke-target id="com.mycompany.pdf.viewer">
   <rim:type>viewer</rim:type>
   <rim:filter>
      <rim:action>bb.action.VIEW</rim:action>
      <rim:action>bb.action.EDIT</rim:action>
      <rim:mime-type>application/pdf</rim:mime-type>
      <rim:mime-type>application/x-pdf</rim:mime-type>
   </rim:filter>
</rim:invoke-target>

<rim:invoke-target id="com.mycompany.pdf.app">
   <rim:type>application</rim:type>
   <rim:filter>
      <rim:action>bb.action.EDIT</rim:action>
      <rim:mime-type>application/pdf</rim:mime-type>
      <rim:mime-type>application/x-pdf</rim:mime-type>
      <rim:property var="uris" value="file://,pdf://" />
      <rim:property var="exts" value="pdf" />
   </rim:filter>
   <rim:filter>
      <rim:action>bb.action.VIEW</rim:action>
      <rim:mime-type>application/pdf</rim:mime-type>
      <rim:mime-type>application/x-pdf</rim:mime-type>
   </rim:filter>
 </rim:invoke-target>

Last modified: 2015-04-16



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

comments powered by Disqus