updateRuntimeSettingsFromJson method

Future<void> updateRuntimeSettingsFromJson(
  1. String jsonString
)

Update runtime settings with the given JSON string.

The method will throw PlatformException if an error occurs when updateBarcodeSettingsFromJson operation.

The jsonString is a string that represents the content of the settings and must not be null.

You can use updateRuntimeSettingsFromJson like this:

late final DynamsoftBarcodeReader _barcodeReader;
_barcodeReader = await DynamsoftBarcodeReader.createInstance();
try {
  await _barcodeReader.updateRuntimeSettingsFromJson(jsonString: '**********');
} catch (e) {
  print('error = $e');
}

Implementation

Future<void> updateRuntimeSettingsFromJson(String jsonString) {
  return _barcodeReaderCaller.updateRuntimeSettingsFromJson(jsonString);
}