Fix scan orientation
By default, MobbScan's UI for document detection detects the orientation of the device and turns the UI according to the actual orientation of the device, by doing this MobbScan allows the user to scan a document using the orientation the user is most comfortable with.
Nevertheless this might not be what you want for you app, so MobbScan allows you to fix an orientation for the scan process.
MobbScanAPI.getInstance().fixedMode = MobbScanAPI.FixedMode.PORTRAIT
MobbScanAPI.getInstance().setFixedMode(MobbScanAPI.FixedMode.PORTRAIT);
This setter has to be called before performing the scan call to MobbScan.
The values you can use on this call are:
value | description |
---|---|
PORTRAIT | Fix the orientation of the UI to portrait mode. |
LANDSCAPE | Fixes the orientation of the UI to landscape mode. |
NONE | Disables the fix mode and allows to turn the UI. |