🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

voip-callkit

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

voip-callkit

capacitor plugin for callkit and voip

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

voip-callkit

capacitor plugin for callkit and voip

Install

npm install voip-callkit
npx cap sync

API

  • register(...)
  • incomingCall(...)
  • addListener('registration', ...)
  • addListener('callAnswered', ...)
  • addListener('callStarted', ...)
  • Interfaces
  • Type Aliases

register(...)

register(options: { topic: string; }) => Promise<void>
ParamType
options{ topic: string; }

incomingCall(...)

incomingCall(options: { from: string; }) => Promise<void>
ParamType
options{ from: string; }

addListener('registration', ...)

addListener(eventName: 'registration', listenerFunc: (token: Token) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'registration'
listenerFunc(token: Token) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

addListener('callAnswered', ...)

addListener(eventName: 'callAnswered', listenerFunc: (callDate: CallData) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'callAnswered'
listenerFunc(callDate: CallData) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

addListener('callStarted', ...)

addListener(eventName: 'callStarted', listenerFunc: (callDate: CallData) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'callStarted'
listenerFunc(callDate: CallData) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Token

PropType
tokenstring

CallData

PropType
connectionIdstring
usernamestring

MessageCallData

PropType
type'message'
callbackIdstring
pluginIdstring
methodNamestring
optionsany

ErrorCallData

PropType
type'js.error'
error{ message: string; url: string; line: number; col: number; errorObject: string; }

Type Aliases

CallData

MessageCallData | ErrorCallData

Keywords

capacitor

FAQs

Package last updated on 08 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts