iOS Category (ios-only)
All iOS Category types are made available through the named export IOSCategory
:
import { IOSCategory } from 'react-native-track-player';
Playback
The category for playing recorded music or other sounds that are central to the successful use of your app.
PlayAndRecord
The category for recording (input) and playback (output) of audio, such as for a Voice over Internet Protocol (VoIP) app.
MultiRoute
The category for routing distinct streams of audio data to different output devices at the same time.
Ambient
The category for an app in which sound playback is nonprimary — that is, your app also works with the sound turned off.
SoloAmbient
The default audio session category.
Record
The category for recording audio while also silencing playback audio.