Class Info |
|---|
public static class Creator Internal Creator class used for creating HmsScanFrameOptions. |
Qualifier and Type | Method Name and Description |
|---|---|
create() Creates an HmsScanFrameOptions instance. | |
HmsScanFrameOptions.Creator | setHmsScanTypes(int format, int… otherFormats) Sets barcode formats. |
HmsScanFrameOptions.Creator | setMultiMode(boolean multiMode) Sets the decoding mode. |
HmsScanFrameOptions.Creator | setParseResult(boolean paseResult) Sets whether to parse the scanning result. |
HmsScanFrameOptions.Creator | setPhotoMode(boolean photoMode) Sets whether to enable image mode or camera mode for barcode scanning. |
Method |
|---|
public HmsScanFrameOptions create() Creates an HmsScanFrameOptions instance. |
Returns
Type | Description |
|---|---|
HmsScanFrameOptions | HmsScanFrameOptions instance. |
Method |
|---|
public HmsScanFrameOptions.Creator setHmsScanTypes(int format, int… otherFormats) Sets supported barcode formats. |
Parameters
Name | Description |
|---|---|
format | Barcode format. |
otherFormats | Barcode format. |
Returns
Type | Description |
|---|---|
HmsScanFrameOptions.Creator | HmsScanFrameOptions.Creator instance. |
Method |
|---|
public HmsScanFrameOptions.Creator setMultiMode(boolean multiMode) Sets the decoding mode. |
Parameters
Name | Description |
|---|---|
multiMode | Decoding mode.
|
Returns
Type | Description |
|---|---|
HmsScanFrameOptions.Creator | HmsScanFrameOptions.Creator instance. |
Method |
|---|
public HmsScanFrameOptions.Creator setParseResult(boolean parseResult) Sets whether to parse the scanning result. |
Parameters
Name | Description |
|---|---|
parseResult | Whether to parse the scanning result.
|
Returns
Type | Description |
|---|---|
HmsScanFrameOptions.Creator | HmsScanFrameOptions.Creator instance. |
Method |
|---|
public HmsScanFrameOptions.Creator setPhotoMode(boolean photoMode) Sets whether to enable image mode or camera mode for barcode scanning. |
Parameters
Name | Description |
|---|---|
photoMode | Whether to enable image mode or camera mode for barcode scanning.
|
Returns
Type | Description |
|---|---|
HmsScanFrameOptions.Creator | HmsScanFrameOptions.Creator instance. |