Follow

Invoking the camera

Provided Categories

cameraCapture

Parameters

The cameraCapture category can use the following query parameters:

Image Source

  • name: imageSource
  • format: string
  • options: cameraphotolibrarysavedphotos.
  • note: required

Camera Source

  • name: cameraSource
  • format: string
  • options: frontback
  • note: required if imageSource is set to camera.

Script String

  • name: scriptString
  • format: string
  • option: the name of a javascript function in the HTML
  • note: optional

Return Value

The selected image is returned, in JPEG format, as a base64 encoded string value with the data:image/jpeg;base64 prefix attached. It is passed as the single parameter to the function name sent in the scriptString.

addToCalendar

Parameters

The addToCalendar category can use the following query parameters:

Title

  • name: title
  • format: string
  • note: the title of the event to add.

Location

  • name: location
  • format: string
  • note: the location of the event to add.

Start Date

  • name: startdate
  • format: interval since Jan 1 1970 in seconds.

All Day

  • name: allday
  • format: bool
  • options: YES, NO
  • note: if used then do not use enddate.

End Date

  • name: enddate
  • format: interval since Jan 1 1970 in seconds.
  • note: if used then do not use allday.

URL

  • name: url
  • format: string
  • note: a URL to add to the event.

Time Zone

Notes

  • name: notes
  • format: string
  • note: Any notes to be added to the event.

Alarm

  • name: alarm
  • format: offset before event startDate in seconds.

Return Value

There is no return value sent to the Javascript yet.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk