Skip to content

@capgo/capacitor-twilio-voice

Integrates the Twilio Voice SDK into Capacitor.

Integrates the Twilio Voice SDK into Capacitor.

  • login - Authenticate the user with Twilio Voice using an access token.
  • logout - Log out the current user and unregister from Twilio Voice.
  • isLoggedIn - Check if the user is currently logged in and has a valid access token.
  • makeCall - Initiate an outgoing call to a phone number or client.
MethodDescription
loginAuthenticate the user with Twilio Voice using an access token.
logoutLog out the current user and unregister from Twilio Voice.
isLoggedInCheck if the user is currently logged in and has a valid access token.
makeCallInitiate an outgoing call to a phone number or client.
acceptCallAccept an incoming call.
rejectCallReject an incoming call.
endCallEnd an active call.
muteCallMute or unmute the microphone during an active call.
setSpeakerEnable or disable speakerphone mode.
getCallStatusGet the current status of the active call.
checkMicrophonePermissionCheck if microphone permission has been granted.
requestMicrophonePermissionRequest microphone permission from the user.
addListenerListen for incoming call invitations.
addListenerListen for call connected events.
addListenerListen for call invite cancellation events.
addListenerListen for outgoing call initiation events.
addListenerListen for outgoing call failure events.
addListenerListen for call disconnection events.
addListenerListen for call ringing events.
addListenerListen for call reconnecting events.
addListenerListen for call reconnected events.
addListenerListen for call quality warning events.
addListenerListen for successful registration events.
addListenerListen for registration failure events.
removeAllListenersRemove all registered event listeners.
getPluginVersionGet the native Capacitor plugin version.

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