setAudioFocus method
Future<int>
setAudioFocus(
- TauPlayerCallback callback, {
- AudioFocus? focus,
- SessionCategory? category,
- SessionMode? mode,
- int? audioFlags,
- 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 ,},);
}