callkit-android-notify
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

callkit-android-notify

capacitor callkit for android

Install

npm install callkit-android-notify
npx cap sync

API

register(...)

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

incomingCall(...)

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

addListener('registration', ...)

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

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('callAnswered', ...)

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

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener('callStarted', ...)

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

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

Token

Prop Type
token string

CallData

Prop Type
connectionId string
username string

MessageCallData

Prop Type
type 'message'
callbackId string
pluginId string
methodName string
options any

ErrorCallData

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

Type Aliases

CallData

MessageCallData | ErrorCallData

Readme

Keywords

Package Sidebar

Install

npm i callkit-android-notify

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

130 kB

Total Files

40

Last publish

Collaborators

  • sathya1284