adjustSuggestedStreamVolume method

Future<void> adjustSuggestedStreamVolume(
  1. AndroidAudioAdjustment direction,
  2. AndroidStreamType? suggestedStreamType,
  3. AndroidAudioVolumeFlags flags
)

(UNTESTED)

Implementation

Future<void> adjustSuggestedStreamVolume(
    AndroidAudioAdjustment direction,
    AndroidStreamType? suggestedStreamType,
    AndroidAudioVolumeFlags flags) async {
  const useDefaultStreamType = 0x80000000;
  await _channel.invokeMethod('adjustSuggestedStreamVolume', [
    direction.index,
    suggestedStreamType?.index ?? useDefaultStreamType,
    flags.value
  ]);
}