setAudioFocus method

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

Implementation

@override
Future<int> setAudioFocus(TauPlayerCallback callback, {AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device,} )
{
  return invokeMethod( callback, 'setAudioFocus', {'focus': focus!.index, 'category': category!.index, 'mode': mode!.index, 'audioFlags': audioFlags, 'device': device!.index ,},);
}