Skip to main content
Version: Next

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.

See the Apple Docs

DuckOthers

An option that reduces the volume of other audio sessions while audio from this session plays.

See the Apple Docs

InterruptSpokenAudioAndMixWithOthers

An option that determines whether to pause spoken audio content from other sessions when your app plays its audio.

See the Apple Docs

AllowBluetooth

An option that determines whether Bluetooth hands-free devices appear as available input routes.

See the Apple Docs

AllowBluetoothA2DP

An option that determines whether you can stream audio from this session to Bluetooth devices that support the Advanced Audio Distribution Profile (A2DP).

See the Apple Docs

AllowAirPlay

An option that determines whether you can stream audio from this session to AirPlay devices.

See the Apple Docs

DefaultToSpeaker

An option that determines whether audio from the session defaults to the built-in speaker instead of the receiver.

See the Apple Docs