toggleVibrateOnScanButtonPress method
Future<CommandResponse>
toggleVibrateOnScanButtonPress({
- required dynamic deviceId,
- required bool enabled,
Toggles the vibration when the scan button is pressed based on the enabled
flag.
deviceId
- The identifier of the target device.
enabled
- A boolean indicating whether to enable or disable the vibration on button press.
Implementation
Future<CommandResponse> toggleVibrateOnScanButtonPress(
{required deviceId, required bool enabled}) async {
return sendCommand(deviceId,
enabled ? enableVibratonOnButtonPress : disableVibratonOnButtonPress);
}