Camera Component
Properties
class The styling class of the the component
Data type: string |
||
Designer Writable | true |
<camera name="cameraName" class="Test class"> |
Code Writeable | false | |
Code Readable | false |
id The styling id of the the component
Data type: string |
||
Designer Writable | true |
<camera name="cameraName" id="Test id"> |
Code Writeable | false | |
Code Readable | false |
name The name of the component that will be used to refer to it in code.
Data type: string |
||
Designer Writable | true |
<camera name="cameraName" name="testComponent"> |
Code Writeable | false | |
Code Readable | false |
Methods
Method name | Description | Parameters | ||||
---|---|---|---|---|---|---|
takePicture |
Takes a picture, then raises the AfterPicture event. cameraName.takePicture() |
|
||||
addEventListener |
Method used to create event listeners. See Events below for samples. |
|
Events
Event name | Description | Parameters | ||
---|---|---|---|---|
afterPicture | Called after the picture is taken. The text argument image is the path that can be used to locate the image on the phone.cameraName.addEventListener( "afterPicture", function (image) { //Your code here } ) |
|