@capgo/capacitor-audio-session
iOS-only plugin to query and control the audio session output and listen to route changes and interruptions.
Overview
Section titled “Overview”iOS-only plugin to query and control the audio session output and listen to route changes and interruptions.
Core Capabilities
Section titled “Core Capabilities”currentOutputs- Get the current active audio output routes.overrideOutput- Override the current audio output route.
Public API
Section titled “Public API”| Method | Description |
|---|---|
currentOutputs | Get the current active audio output routes. |
overrideOutput | Override the current audio output route. |
addListener | Listen for audio route changes (e.g. headset connected/disconnected). |
addListener | Listen for audio session interruptions (e.g. incoming call) and their end. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-audiosession.