Scan Kit can be called in four ways, from which you can choose as needed.
If you want to quickly build powerful barcode scanning capabilities into your app, Default View or Customized View is recommended. In either of the two ways, Scan Kit directly controls the camera to maximize its capabilities, such as doing its best in zoom control and perfectly adapting its exposure and focus to the user's current situation. Less workload is required, but scanning experience is dramatically improved. Customized View differs from Default View in that you can customize the scanning UI.
Bitmap is a good choice if you want to customize the scanning process and control the camera by yourself. When detecting a very small barcode or a barcode from a long distance, Scan Kit returns the level to which the barcode should be magnified to your app. Your app only needs to adjust the focal length accordingly to obtain the barcode image of the appropriate size. The magnification level returned by Scan Kit is calculated based on the detection result and user's current situation. You are advised not to change the level. Otherwise, the scanning performance may be compromised.
Call Mode | Scanning Performed By | Scanning UI | Function |
Default View | Scan Kit | Provided by Scan Kit. | Scan barcodes using the camera or from images in the album. |
Customized View | Scan Kit | Customized by yourself. | Scan barcodes using the camera. |
Bitmap | Your app | Customized by yourself. | Scan barcodes using the camera or from images in the album. |
MultiProcessor | Your app | Customized by yourself. |
|