capacitor callkit for android
npm install callkit-android-notify
npx cap sync
register(options: { topic: string; }) => Promise<void>
Param |
Type |
options |
{ topic: string; } |
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
Prop |
Type |
remove |
() => Promise<void> |
Prop |
Type |
connectionId |
string |
username |
string |
Prop |
Type |
type |
'message' |
callbackId |
string |
pluginId |
string |
methodName |
string |
options |
any |
Prop |
Type |
type |
'js.error' |
error |
{ message: string; url: string; line: number; col: number; errorObject: string; } |
MessageCallData | ErrorCallData