capacitor-plugin-incoming-call-notification
TypeScript icon, indicating that this package has built-in type declarations

1.6.2 • Public • Published

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]; }

Readme

Keywords

Package Sidebar

Install

npm i capacitor-plugin-incoming-call-notification

Weekly Downloads

0

Version

1.6.2

License

MIT

Unpacked Size

57 kB

Total Files

37

Last publish

Collaborators

  • alihemmatnia