0.0.2 • Published 1 year ago

capicitor-plugin-twiliovoice v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

capicitor-plugin-twiliovoice

twilio voice for ios call kit support

Install

npm install capicitor-plugin-twiliovoice
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


initializeWithAccessToken(...)

initializeWithAccessToken(options: InitOptions) => Promise<void>
ParamType
optionsInitOptions

startCall(...)

startCall(options: CallReqest) => Promise<void>
ParamType
optionsCallReqest

disconnectCall()

disconnectCall() => Promise<void>

unmuteCall()

unmuteCall() => Promise<void>

muteCall()

muteCall() => Promise<void>

setSpeaker(...)

setSpeaker(options: { value: boolean; }) => Promise<void>
ParamType
options{ value: boolean; }

addListener('calldidconnect', ...)

addListener(eventName: 'calldidconnect', listenerFunc: (call: Call) => void) => Promise<PluginListenerHandle> & PluginListenerHandle

Listens for screen orientation changes.

ParamType
eventName'calldidconnect'
listenerFunc(call: Call) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('callDidDisconnect', ...)

addListener(eventName: 'callDidDisconnect', listenerFunc: (call: Call) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'callDidDisconnect'
listenerFunc(call: Call) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('callInviteCanceled', ...)

addListener(eventName: 'callInviteCanceled', listenerFunc: (cancelledCall: CancelledCallInvite) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'callInviteCanceled'
listenerFunc(cancelledCall: Call) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('callInviteReceived', ...)

addListener(eventName: 'callInviteReceived', listenerFunc: (inviteCall: CallInvite) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'callInviteReceived'
listenerFunc(inviteCall: CallInvite) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

Removes all listeners


Interfaces

InitOptions

PropType
accessTokenstring

CallReqest

PropType
tostring

PluginListenerHandle

PropType
remove() => Promise<void>

Call

PropType
fromstring
tostring
sidstring

CallInvite

PropType
uuidstring

Type Aliases

CancelledCallInvite

Call

0.0.2

1 year ago

0.0.1

1 year ago