isBeepOnSuccessEnabled property
Retrieves the value indicating whether a beep sound is played on successful barcode scanning.
Returns a Future that completes with a boolean indicating whether beep on success is enabled.
Example usage:
bool beepOnSuccessEnabled = await _barkoder.isBeepOnSuccessEnabled;
print('Beep on success enabled: $beepOnSuccessEnabled');
Implementation
Future<bool> get isBeepOnSuccessEnabled async {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return await _methodChannel.invokeMethod('isBeepOnSuccessEnabled');
}