capacitor-plugin-incoming-call-notification
v1.6.2
Published
Plugin to create an incoming call notification
Downloads
4
Readme
capacitor-plugin-incoming-call-notification
Plugin to create an incoming call notification
Install
npm install capacitor-plugin-incoming-call-notification
npx cap sync
API
show(...)
show(data?: Partial<IncomingCallNotificationSettings> | undefined) => Promise<{ response: 'click' | 'answer' | 'decline' | 'terminate'; }>
| Param | Type |
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| data
| Partial<IncomingCallNotificationSettings> |
Returns: Promise<{ response: 'click' | 'answer' | 'decline' | 'terminate'; }>
hide()
hide() => Promise<void>
Interfaces
IncomingCallNotificationSettings
| 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 |
Type Aliases
Partial
Make all properties in T optional
{ [P in keyof T]?: T[P]; }