setImageResultEnabled method
- bool enabled
Enables or disables the capturing and processing of image data when a barcode is successfully detected.
enabled
: A boolean indicating whether to enable image result.
Example usage:
bool imageResultEnabled = true;
_barkoder.setImageResultEnabled(imageResultEnabled);
print('Image result enabled: $imageResultEnabled');
Implementation
Future<void> setImageResultEnabled(bool enabled) {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return _methodChannel.invokeMethod('setImageResultEnabled', enabled);
}