Passer au contenu

@capgo/capacitor-audio-session

iOS-only plugin to query and control the audio session output and listen to route changes and interruptions.

iOS-only plugin to query and control the audio session output and listen to route changes and interruptions.

  • currentOutputs - Get the current active audio output routes.
  • overrideOutput - Override the current audio output route.
MethodDescription
currentOutputsGet the current active audio output routes.
overrideOutputOverride the current audio output route.
addListenerListen for audio route changes (e.g. headset connected/disconnected).
addListenerListen for audio session interruptions (e.g. incoming call) and their end.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-audiosession.