setAudioFocus method

  1. @override
Future<void> setAudioFocus(
  1. FlutterSoundRecorderCallback callback, {
  2. AudioFocus? focus,
  3. SessionCategory? category,
  4. SessionMode? mode,
  5. int? audioFlags,
  6. AudioDevice? device,
})
override

Implementation

@override
Future<void> setAudioFocus(FlutterSoundRecorderCallback callback, {AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device,} ) async
{
        getWebSession(callback)!.setAudioFocus(focus!.index, category!.index, mode!.index, audioFlags, device!.index);
}