@@ -218,15 +218,15 @@ __Supported Platforms__
218
218
219
219
More examples [ here] ( #camera-getPicture-examples ) . Quirks [ here] ( #camera-getPicture-quirks ) .
220
220
221
- ** Kind** : static method of <code >[ camera] ( #module_camera ) </code >
221
+ ** Kind** : static method of <code >[ camera] ( #module_camera ) </code >
222
222
223
223
| Param | Type | Description |
224
224
| --- | --- | --- |
225
225
| successCallback | <code >[ onSuccess] ( #module_camera.onSuccess ) </code > | |
226
226
| errorCallback | <code >[ onError] ( #module_camera.onError ) </code > | |
227
227
| options | <code >[ CameraOptions] ( #module_camera.CameraOptions ) </code > | CameraOptions |
228
228
229
- ** Example**
229
+ ** Example**
230
230
``` js
231
231
navigator .camera .getPicture (cameraSuccess, cameraError, cameraOptions);
232
232
```
@@ -242,8 +242,8 @@ __Supported Platforms__
242
242
243
243
- iOS
244
244
245
- ** Kind** : static method of <code >[ camera] ( #module_camera ) </code >
246
- ** Example**
245
+ ** Kind** : static method of <code >[ camera] ( #module_camera ) </code >
246
+ ** Example**
247
247
``` js
248
248
navigator .camera .cleanup (onSuccess, onFail);
249
249
@@ -260,7 +260,7 @@ function onFail(message) {
260
260
### camera.onError : <code >function</code >
261
261
Callback function that provides an error message.
262
262
263
- ** Kind** : static typedef of <code >[ camera] ( #module_camera ) </code >
263
+ ** Kind** : static typedef of <code >[ camera] ( #module_camera ) </code >
264
264
265
265
| Param | Type | Description |
266
266
| --- | --- | --- |
@@ -271,13 +271,13 @@ Callback function that provides an error message.
271
271
### camera.onSuccess : <code >function</code >
272
272
Callback function that provides the image data.
273
273
274
- ** Kind** : static typedef of <code >[ camera] ( #module_camera ) </code >
274
+ ** Kind** : static typedef of <code >[ camera] ( #module_camera ) </code >
275
275
276
276
| Param | Type | Description |
277
277
| --- | --- | --- |
278
278
| imageData | <code >string</code > | Data URI, _ or_ the image file URI, depending on [ ` cameraOptions ` ] ( #module_camera.CameraOptions ) in effect. |
279
279
280
- ** Example**
280
+ ** Example**
281
281
``` js
282
282
// Show image captured with FILE_URI
283
283
function cameraCallback (imageData ) {
@@ -299,7 +299,7 @@ function cameraCallback(imageData) {
299
299
Optional parameters to customize the camera settings.
300
300
* [ Quirks] ( #CameraOptions-quirks )
301
301
302
- ** Kind** : static typedef of <code >[ camera] ( #module_camera ) </code >
302
+ ** Kind** : static typedef of <code >[ camera] ( #module_camera ) </code >
303
303
** Properties**
304
304
305
305
| Name | Type | Default | Description |
@@ -327,7 +327,7 @@ Optional parameters to customize the camera settings.
327
327
### Camera.DestinationType : <code >enum</code >
328
328
Defines the output format of ` Camera.getPicture ` call.
329
329
330
- ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
330
+ ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
331
331
** Properties**
332
332
333
333
| Name | Type | Default | Description |
@@ -338,7 +338,7 @@ Defines the output format of `Camera.getPicture` call.
338
338
<a name =" module_Camera.EncodingType " ></a >
339
339
340
340
### Camera.EncodingType : <code >enum</code >
341
- ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
341
+ ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
342
342
** Properties**
343
343
344
344
| Name | Type | Default | Description |
@@ -349,7 +349,7 @@ Defines the output format of `Camera.getPicture` call.
349
349
<a name =" module_Camera.MediaType " ></a >
350
350
351
351
### Camera.MediaType : <code >enum</code >
352
- ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
352
+ ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
353
353
** Properties**
354
354
355
355
| Name | Type | Default | Description |
@@ -363,7 +363,7 @@ Defines the output format of `Camera.getPicture` call.
363
363
### Camera.PictureSourceType : <code >enum</code >
364
364
Defines the output format of ` Camera.getPicture ` call.
365
365
366
- ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
366
+ ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
367
367
** Properties**
368
368
369
369
| Name | Type | Default | Description |
@@ -377,21 +377,21 @@ Defines the output format of `Camera.getPicture` call.
377
377
### Camera.PopoverArrowDirection : <code >enum</code >
378
378
Matches iOS UIPopoverArrowDirection constants to specify arrow location on popover.
379
379
380
- ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
380
+ ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
381
381
** Properties**
382
382
383
383
| Name | Type | Default |
384
384
| --- | --- | --- |
385
- | ARROW_UP | <code >number</code > | <code >1</code > |
386
- | ARROW_DOWN | <code >number</code > | <code >2</code > |
387
- | ARROW_LEFT | <code >number</code > | <code >4</code > |
388
- | ARROW_RIGHT | <code >number</code > | <code >8</code > |
389
- | ARROW_ANY | <code >number</code > | <code >15</code > |
385
+ | ARROW_UP | <code >number</code > | <code >1</code > |
386
+ | ARROW_DOWN | <code >number</code > | <code >2</code > |
387
+ | ARROW_LEFT | <code >number</code > | <code >4</code > |
388
+ | ARROW_RIGHT | <code >number</code > | <code >8</code > |
389
+ | ARROW_ANY | <code >number</code > | <code >15</code > |
390
390
391
391
<a name =" module_Camera.Direction " ></a >
392
392
393
393
### Camera.Direction : <code >enum</code >
394
- ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
394
+ ** Kind** : static enum property of <code >[ Camera] ( #module_Camera ) </code >
395
395
** Properties**
396
396
397
397
| Name | Type | Default | Description |
@@ -434,7 +434,7 @@ __Supported Platforms__
434
434
435
435
- iOS
436
436
437
- ** Example**
437
+ ** Example**
438
438
``` js
439
439
navigator .camera .getPicture (onSuccess, onFail,
440
440
{
@@ -708,11 +708,11 @@ function getFileEntry(imgUri) {
708
708
window .resolveLocalFileSystemURL (cordova .file .dataDirectory , function (dataDirectoryEntry ) {
709
709
fileEntry .copyTo (dataDirectoryEntry, " profilePic" , onSuccess, onError);
710
710
}, onError);
711
-
711
+
712
712
// Example 2: Upload it!
713
713
fileEntry .file (function (file ) {
714
714
var reader = new FileReader ();
715
-
715
+
716
716
reader .onloadend = function () {
717
717
var xhr = new XMLHttpRequest ();
718
718
xhr .open (' POST' , ' https://myserver.com/upload' );
0 commit comments