@capgo/capacitor-twilio-voice
Integrates the Twilio Voice SDK into Capacitor.
Overview
Section titled “Overview”Integrates the Twilio Voice SDK into Capacitor.
Core Capabilities
Section titled “Core Capabilities”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.
Public API
Section titled “Public API”| Method | Description |
|---|---|
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. |
acceptCall | Accept an incoming call. |
rejectCall | Reject an incoming call. |
endCall | End an active call. |
muteCall | Mute or unmute the microphone during an active call. |
setSpeaker | Enable or disable speakerphone mode. |
getCallStatus | Get the current status of the active call. |
checkMicrophonePermission | Check if microphone permission has been granted. |
requestMicrophonePermission | Request microphone permission from the user. |
addListener | Listen for incoming call invitations. |
addListener | Listen for call connected events. |
addListener | Listen for call invite cancellation events. |
addListener | Listen for outgoing call initiation events. |
addListener | Listen for outgoing call failure events. |
addListener | Listen for call disconnection events. |
addListener | Listen for call ringing events. |
addListener | Listen for call reconnecting events. |
addListener | Listen for call reconnected events. |
addListener | Listen for call quality warning events. |
addListener | Listen for successful registration events. |
addListener | Listen for registration failure events. |
removeAllListeners | Remove all registered event listeners. |
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-twilio-voice.