Plugin to create an incoming call notification
npm install capacitor-plugin-incoming-call-notification
npx cap sync
show(data?: Partial<IncomingCallNotificationSettings> | undefined) => Promise<{ response: 'click' | 'answer' | 'decline' | 'terminate'; }>
Param | Type |
---|---|
data |
Partial<IncomingCallNotificationSettings> |
Returns: Promise<{ response: 'click' | 'answer' | 'decline' | 'terminate'; }>
hide() => Promise<void>
Prop | Type |
---|---|
callerName |
string |
callerNumber |
string |
icon |
string |
picture |
string |
thereIsACallInProgress |
boolean |
declineButtonText |
string |
declineButtonColor |
string |
answerButtonText |
string |
answerButtonColor |
string |
terminateAndAnswerButtonText |
string |
terminateAndAnswerButtonColor |
string |
declineSecondCallButtonText |
string |
declineSecondCallButtonColor |
string |
holdAndAnswerButtonText |
string |
holdAndAnswerButtonColor |
string |
color |
string |
channelName |
string |
channelDescription |
string |
Make all properties in T optional
{
[P in keyof T]?: T[P];
}