File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
macos/mobile_scanner/Sources/mobile_scanner Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,12 @@ struct MobileScannerErrorCodes {
19
19
// The error code 'BARCODE_ERROR' does not have an error message,
20
20
// because it uses the error message from the undelying error.
21
21
static let BARCODE_ERROR = " MOBILE_SCANNER_BARCODE_ERROR "
22
+ // The error code 'CAMERA_ERROR' does not have an error message,
23
+ // because it uses the error message from the underlying error.
22
24
static let CAMERA_ERROR = " MOBILE_SCANNER_CAMERA_ERROR "
23
25
static let GENERIC_ERROR = " MOBILE_SCANNER_GENERIC_ERROR "
24
26
static let GENERIC_ERROR_MESSAGE = " An unknown error occurred. "
27
+ // This message is used with the 'GENERIC_ERROR' error code.
25
28
static let INVALID_ZOOM_SCALE_ERROR_MESSAGE = " The zoom scale should be between 0 and 1 (both inclusive) "
26
29
static let NO_CAMERA_ERROR = " MOBILE_SCANNER_NO_CAMERA_ERROR "
27
30
static let NO_CAMERA_ERROR_MESSAGE = " No cameras available. "
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ struct MobileScannerErrorCodes {
13
13
// The error code 'BARCODE_ERROR' does not have an error message,
14
14
// because it uses the error message from the undelying error.
15
15
static let BARCODE_ERROR = " MOBILE_SCANNER_BARCODE_ERROR "
16
+ // The error code 'CAMERA_ERROR' does not have an error message,
17
+ // because it uses the error message from the underlying error.
16
18
static let CAMERA_ERROR = " MOBILE_SCANNER_CAMERA_ERROR "
17
19
static let NO_CAMERA_ERROR = " MOBILE_SCANNER_NO_CAMERA_ERROR "
18
20
static let NO_CAMERA_ERROR_MESSAGE = " No cameras available. "
You can’t perform that action at this time.
0 commit comments