setObjectDetectionSettings method

void setObjectDetectionSettings(
  1. ObjectDetectionSettings objectDetectionSettings
)

Implementation

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