JavaArguments

The JavaArguments object is an instance object, and is used as a parameter to the invoke() method when invoking a Java application.

Supported Platform(s)

- BlackBerry OS 5.0+
- Ripple Emulator

View Supported Platform Table

APIOS 5.0OS 6.0OS 7.0PlayBookRipple
blackberry.invoke.JavaArguments Y Y Y  Y

Configuration Document Settings

To use all of the API described for this object, you must ensure the following settings are in your configuration document:


You must declare the feature element(s) below in your configuration document:

Feature IDOS 5.0OS 6.0OS 7.0PlayBookRipple
<feature id="blackberry.invoke" /> Y Y Y  Y
<feature id="blackberry.invoke.JavaArguments" /> Y Y Y  Y

Permission Elements (PlayBook Only)
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.

API Summary


blackberry.invoke.JavaArguments


blackberry.invoke.JavaArguments (uri : String, [params: String])

Supported Platform(s)

 - BlackBerry OS 5.0+
 - Ripple Emulator

Description

The JavaArguments object must be created as an instance using the new keyword.



Parameter Type Description
uri String URL which can be in any form and is passed in the arguments to main. The uri can be in the format: 'appName', 'appName.entryPoint' or 'appName[.entryPoint]?arg1=val&arg2=val'.
params String
Optional
String array that contains additional parameters. Each entry in the params array should be in a name value pair such as 'arg1=val1'.

Code Example(s)

<script type="text/javascript"> 
   var args = new blackberry.invoke.JavaArguments('net_rim_bb_memo_app');
   blackberry.invoke.invoke(blackberry.invoke.APP_JAVA, args);  // Java
</script>

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 13:31:18 GMT-0500 (EST)