onGetPictureError( err ) method

Camera

Syntax

<static> onGetPictureError( err )

Parameters

Name Type Description
err number the error code returned.Possible values are
  1. PictureError.NO_ERROR = 0;
  2. PictureError.NOT_SUPPORTED = -1; getPicture() not implemented, camera not present,
  3. PictureError.IN_PROGRESS = -2; getPicture() has already been requested but has not yet completed.
  4. PictureError.USER_REJECT = -3; the user has canceled the request.
  5. PictureError.BAD_OPTIONS = -4; supplied options were not recognized.
  6. PictureError.TOO_LARGE = -5; the returned image size was too large to be handled by JavaScript
  7. PictureError.UNKNOWN = -6; an unknown error occurred.

Source

Camera.js, line 268.