setObjectDetectionSettings method
Implementation
void setObjectDetectionSettings(
ObjectDetectionSettings objectDetectionSettings) {
_channel.invokeMethod(
'configureObjectDetectionSettings',
jsonEncode({
'isDocumentIndicationOn':
objectDetectionSettings.isDocumentIndicationOn,
'secondsToWaitBeforeDocumentCapture':
objectDetectionSettings.secondsToWaitBeforeDocumentCapture,
'isTextIndicationOn': objectDetectionSettings.isTextIndicationOn,
'isBarcodeOrQRCodeIndicationOn':
objectDetectionSettings.isBarcodeOrQRCodeIndicationOn
}));
}