iOSCategory
Last updated
Was this helpful?
Last updated
Was this helpful?
Before controlling the focus with requestFocs()
you must call iosSetCategory()
on iOS or androidAudioFocusRequest()
on Android. requesFocus()
and androidAudioFocusRequest()
are useful if you want to hush others
(in android terminology duck others). Those functions are probably called just once when the app starts. After calling this function, the caller is calling requestFocus()/abandonFocus() as required
.
You can refer to to understand the parameters needed for iosSetCategory()
and to the to understand the parameter needed for androidAudioFocusRequest()
.
Remark : those three functions do NOT work on Android before SDK 26.
Note: these platform specific methods are under review with the intent to remove any/all platform specific elements to the api.