Callkit webrtc capacitor plugin
npm install capacitor-callkit-webrtc-plugin
npx cap syncisGranted()openSettings()unregisterProximityListener()toggleSpeaker(...)isSpeakerOn()toggleMicrophone(...)isMicrophoneMuted()createAnswer()createPeer(...)createOffer(...)setRemoteSdp(...)setRemoteIceCandidate(...)closePeerConnection()getPeerConnectionStatus()getRemoteDescriptionStatus()doMethod(...)- Interfaces
- Type Aliases
- Enums
isGranted() => Promise<{ granted: boolean; }>Returns: Promise<{ granted: boolean; }>
openSettings() => Promise<void>unregisterProximityListener() => Promise<{ status: string; }>Returns: Promise<{ status: string; }>
toggleSpeaker({ useSpeaker, }: { useSpeaker: boolean; }) => Promise<{ isSpeakerOn: boolean; }>| Param | Type |
|---|---|
__0 |
{ useSpeaker: boolean; } |
Returns: Promise<{ isSpeakerOn: boolean; }>
isSpeakerOn() => Promise<{ isSpeakerOn: boolean; }>Returns: Promise<{ isSpeakerOn: boolean; }>
toggleMicrophone({ mute, }: { mute: boolean; }) => Promise<{ isMicrophoneMuted: boolean; }>| Param | Type |
|---|---|
__0 |
{ mute: boolean; } |
Returns: Promise<{ isMicrophoneMuted: boolean; }>
isMicrophoneMuted() => Promise<{ isMicrophoneMuted: boolean; }>Returns: Promise<{ isMicrophoneMuted: boolean; }>
createAnswer() => Promise<SessionDescription>Returns: Promise<SessionDescription>
createPeer({ iceServers, }: { iceServers: [ { urls: string[]; username: string; credential: string; } ]; }) => Promise<{ status: string; }>| Param | Type |
|---|---|
__0 |
{ iceServers: [{ urls: string[]; username: string; credential: string; }]; } |
Returns: Promise<{ status: string; }>
createOffer({ iceServers, }: { iceServers: [ { urls: string[]; username: string; credential: string; } ]; }) => Promise<SessionDescription>| Param | Type |
|---|---|
__0 |
{ iceServers: [{ urls: string[]; username: string; credential: string; }]; } |
Returns: Promise<SessionDescription>
setRemoteSdp({ sdp, type, iceServers, }: { sdp: string; type: string; iceServers?: [ { urls: string[]; username: string; credential: string; } ]; }) => Promise<{ status: string; }>| Param | Type |
|---|---|
__0 |
{ sdp: string; type: string; iceServers?: [{ urls: string[]; username: string; credential: string; }]; } |
Returns: Promise<{ status: string; }>
setRemoteIceCandidate({ sdpMLineIndex, sdpMid, candidate, }: any) => Promise<{ status: string; }>| Param | Type |
|---|---|
__0 |
any |
Returns: Promise<{ status: string; }>
closePeerConnection() => Promise<{ status: string; }>Returns: Promise<{ status: string; }>
getPeerConnectionStatus() => Promise<{ status: string; }>Returns: Promise<{ status: string; }>
getRemoteDescriptionStatus() => Promise<{ status: string; }>Returns: Promise<{ status: string; }>
doMethod(options: { options: string; methodName: MethodNames; parsedOptions: CallKitParams; }) => Promise<Responses>| Param | Type |
|---|---|
options |
{ options: string; methodName: MethodNames; parsedOptions: CallKitParams; } |
Returns: Promise<Responses>
| Prop | Type |
|---|---|
type |
SdpType |
sdp |
string |
| Prop | Type |
|---|---|
id |
string |
nameCaller |
string |
appName |
string |
avatar |
string |
handle |
string |
type |
number |
isOnHold |
boolean |
isMuted |
boolean |
normalHandle |
number |
duration |
number |
textAccept |
string |
textDecline |
string |
textMissedCall |
string |
textCallback |
string |
rationaleMessagePermission |
string |
postNotificationMessageRequired |
string |
missedCallNotification |
NotificationParams |
extra |
{ [key: string]: any; } |
headers |
{ [key: string]: any; } |
android |
AndroidParams |
ios |
IOSParams |
| Prop | Type |
|---|---|
id |
number |
showNotification |
boolean |
subtitle |
string |
callbackText |
string |
isShowCallback |
boolean |
int |
number |
| Prop | Type |
|---|---|
isCustomNotification |
boolean |
isCustomSmallExNotification |
boolean |
isShowLogo |
boolean |
isShowCallID |
boolean |
ringtonePath |
string |
backgroundColor |
string |
backgroundUrl |
string |
actionColor |
string |
textColor |
string |
incomingCallNotificationChannelName |
string |
missedCallNotificationChannelName |
string |
isShowFullLockedScreen |
boolean |
isImportant |
boolean |
isBot |
boolean |
| Prop | Type |
|---|---|
iconName |
string |
handleType |
string |
supportsVideo |
boolean |
maximumCallGroups |
number |
maximumCallsPerCallGroup |
number |
audioSessionMode |
string |
audioSessionActive |
boolean |
audioSessionPreferredSampleRate |
number |
audioSessionPreferredIOBufferDuration |
number |
configureAudioSession |
boolean |
supportsDTMF |
boolean |
supportsHolding |
boolean |
supportsGrouping |
boolean |
supportsUngrouping |
boolean |
ringtonePath |
string |
void | { isMuted: boolean } | { calls: CallKitParams[] } | { isVersionOk: boolean } | { devicePushTokenVoIP: string }
'showCallkitIncoming' | 'checkIsVersionOk' | 'sendPendingAcceptEvent' | 'showCallkitIncomingSilently' | 'showMissCallNotification' | 'startCall' | 'muteCall' | 'holdCall' | 'isMuted' | 'endCall' | 'callConnected' | 'endAllCalls' | 'activeCalls' | 'getDevicePushTokenVoIP' | 'silenceEvents' | 'requestNotificationPermission' | 'requestFullIntentPermission' | 'hideCallkitIncoming' | 'endNativeSubsystemOnly' | 'setAudioRoute'
| Members | Value |
|---|---|
offer |
'offer' |
prAnswer |
'prAnswer' |
answer |
'answer' |
rollback |
'rollback' |