CameraArguments

The CameraArguments object is an instance object, and is used as a parameter to the invoke() method when invoking the Camera application or Recorder application.

Supported Platform(s)

- BlackBerry OS 5.0+
- BlackBerry PlayBook
- Ripple Emulator

View Supported Platform Table

APIOS 5.0OS 6.0OS 7.0PlayBookRipple
blackberry.invoke.CameraArguments Y Y Y YY
view Y Y Y YY
VIEW_CAMERA Y Y Y YY
VIEW_RECORDER Y Y Y YY

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 YY
<feature id="blackberry.invoke.CameraArguments" /> 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



Properties


blackberry.invoke.CameraArguments


blackberry.invoke.CameraArguments ()

Supported Platform(s)

 - BlackBerry OS 5.0+
 - BlackBerry PlayBook
 - Ripple Emulator

Description

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



Code Example(s)

<script type="text/javascript">    
  var args = new blackberry.invoke.CameraArguments();
  args.view = 1; // Video Recorder
     
  blackberry.invoke.invoke(blackberry.invoke.APP_CAMERA, args);  // Video Recorder Application
</script>

Properties:


Property Type Description Supported Platform(s)
view Number Value that specifies what kind of camera application you want to open.
 - BlackBerry OS 5.0+
 - BlackBerry PlayBook
 - Ripple Emulator

Constants:


Property Type Description Supported Platform(s)
VIEW_CAMERA Number Photo Camera
 - BlackBerry OS 5.0+
 - BlackBerry PlayBook
 - Ripple Emulator
VIEW_RECORDER Number Video Recorder
 - BlackBerry OS 5.0+
 - BlackBerry PlayBook
 - Ripple Emulator

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