iOS Category Options (ios-only)
All iOS Category Options types are made available through the named export IOSCategoryOptions
:
import { IOSCategoryOptions } from 'react-native-track-player';
MixWithOthers
An option that indicates whether audio from this session mixes with audio from active sessions in other audio apps.
DuckOthers
An option that reduces the volume of other audio sessions while audio from this session plays.
InterruptSpokenAudioAndMixWithOthers
An option that determines whether to pause spoken audio content from other sessions when your app plays its audio.
AllowBluetooth
An option that determines whether Bluetooth hands-free devices appear as available input routes.
AllowBluetoothA2DP
An option that determines whether you can stream audio from this session to Bluetooth devices that support the Advanced Audio Distribution Profile (A2DP).
AllowAirPlay
An option that determines whether you can stream audio from this session to AirPlay devices.
DefaultToSpeaker
An option that determines whether audio from the session defaults to the built-in speaker instead of the receiver.