setVolumeButtonsEnabled method

Future<void> setVolumeButtonsEnabled(
  1. bool enabled
)

Enable or disable the hardware volume buttons while the Flutter activity is in the foreground.

When enabled is false, volume up/down key presses are intercepted and do not change the system volume while your app is visible.

Implementation

Future<void> setVolumeButtonsEnabled(bool enabled) {
  throw UnimplementedError('setVolumeButtonsEnabled() has not been implemented.');
}