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 1.0+
- Ripple Emulator
View Supported Platform Table
APIBB5.0BB6.0BB7.0PB1.0PB2.0BB10Ripple
blackberry.invoke.CameraArguments Y Y Y Y Y  Y
view Y Y Y Y Y  Y
VIEW_CAMERA Y Y Y Y Y  Y
VIEW_RECORDER Y Y 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 IDBB5.0BB6.0BB7.0PB1.0PB2.0BB10Ripple
<feature id="blackberry.invoke" /> Y Y Y Y Y  Y
<feature id="blackberry.invoke.CameraArguments" /> Y Y Y       

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


Properties

Number view

Constants

Number VIEW_CAMERA
Number VIEW_RECORDER

Constructors

blackberry.invoke.CameraArguments ()

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


Supported Platforms
 - BlackBerry OS 5.0+
 - BlackBerry PlayBook 1.0+
 - Ripple Emulator


Code Example:
<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

Number view


Value that specifies what kind of camera application you want to open.


Supported Platforms
 - BlackBerry OS 5.0+
 - BlackBerry PlayBook 1.0+
 - Ripple Emulator

Constants

static Number VIEW_CAMERA


Photo Camera


Supported Platforms
 - BlackBerry OS 5.0+
 - BlackBerry PlayBook 1.0+
 - Ripple Emulator

static Number VIEW_RECORDER


Video Recorder


Supported Platforms
 - BlackBerry OS 5.0+
 - BlackBerry PlayBook 1.0+
 - Ripple Emulator

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Feb 11 2013 14:51:03 GMT-0500 (EST)