Skip to main content

Interface: AndroidAudioSessionConfig

Defined in: packages/audio-session/src/specs/audio-session.nitro.ts:108

Android half of AudioSessionConfig. Ignored on iOS.

Properties

contentType

contentType: AndroidAudioContentType;

Defined in: packages/audio-session/src/specs/audio-session.nitro.ts:110


focusGain

focusGain: AndroidAudioFocusGain;

Defined in: packages/audio-session/src/specs/audio-session.nitro.ts:111


usage

usage: AndroidAudioUsage;

Defined in: packages/audio-session/src/specs/audio-session.nitro.ts:109


willPauseWhenDucked

willPauseWhenDucked: boolean;

Defined in: packages/audio-session/src/specs/audio-session.nitro.ts:122

AudioFocusRequest.Builder.setWillPauseWhenDucked.

true opts out of the system's automatic ducking so we receive AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK ourselves — this is what makes the speech preset pause instead of duck.

No iOS equivalent exists — see AudioInterruptionType. On iOS the speech preset is ducked by the system like any other audio.