projects/mobile/components/device/camera/src/camera.component.doc.ts
The wmCamera component defines the camera widget.
Methods |
Inputs |
onSuccess | ||||||||||||||||||||
onSuccess($event: MouseEvent, widget: any, localFilePath: string, localFile: any)
|
||||||||||||||||||||
This event handler is called whenever a success event is triggered.
Parameters :
Returns :
void
|
allowedit |
Type : boolean
|
Default value : false
|
Allow simple editing on image after capturing. |
capturetype |
Type : string
|
Default value : 'IMAGE'
|
This specifies whether image or video is to be captured. Allowed Values:
|
class |
Type : string
|
Class of the widget. |
correctorientation |
Type : boolean
|
Default value : false
|
Rotate the image to correct for the orientation of the device during capture. |
datavalue |
Type : string
|
This property defines the value of the camera widget. Bindable: |
horizontalalign |
Type : string
|
This property specifies how the elements should be aligned horizontally. Allowed Values:
|
iconclass |
Type : string
|
Default value : 'wi wi-photo-camera'
|
This property specifies CSS class of the icon. Bindable: |
iconsize |
Type : string
|
Default value : '2em'
|
This property specifies size of the icon. Value has to be specified along with the units (em or px). |
imageencodingtype |
Type : string
|
Default value : 'JPEG'
|
Choose the returned image file's encoding. Allowed Values:
|
imagequality |
Type : number
|
Default value : 80
|
Quality of the saved image, expressed as a range of 0-100, where 100 is typically full resolution with no loss from file compression. |
imagetargetheight |
Type : number
|
This property specifies the height in px to resize the image. |
imagetargetwidth |
Type : number
|
This property specifies the width in px to resize the image. |
name |
Type : string
|
Name of the camera widget. |
savetogallery |
Type : boolean
|
Default value : false
|
Save the image to the photo album on the device after capture. |
show |
Type : boolean
|
Default value : true
|
This property will be used to show/hide the camera widget. Bindable: |