7.5.5 • Published 6 months ago

@anuradev/capacitor-phone-call-notification v7.5.5

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@anuradev/capacitor-phone-call-notification

Capacitor plugin to create phone call notifications

Install

npm install @anuradev/capacitor-phone-call-notification
npx cap sync

API

showIncomingPhoneCallNotification(...)

showIncomingPhoneCallNotification(data?: Partial<IncomingPhoneCallNotificationSettings> | undefined) => Promise<void>
ParamType
dataPartial<IncomingPhoneCallNotificationSettings>

showCallInProgressNotification(...)

showCallInProgressNotification(data?: Partial<CallInProgressNotificationSettings> | undefined) => Promise<void>
ParamType
dataPartial<CallInProgressNotificationSettings>

hideIncomingPhoneCallNotification()

hideIncomingPhoneCallNotification() => Promise<void>

hideCallInProgressNotification()

hideCallInProgressNotification() => Promise<void>

checkNotificationsPermission()

checkNotificationsPermission() => Promise<NotificationPermissionStatus>

Returns: Promise<NotificationPermissionStatus>


requestNotificationsPermission()

requestNotificationsPermission() => Promise<NotificationPermissionStatus>

Returns: Promise<NotificationPermissionStatus>


addListener('response', ...)

addListener(eventName: 'response', listenerFunc: (data: { response: NotificationResponse; }) => void) => Promise<PluginListenerHandle>
ParamType
eventName'response'
listenerFunc(data: { response: NotificationResponse; }) => void

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

IncomingPhoneCallNotificationSettings

PropType
iconstring
picturestring
callWaitingboolean
declineButtonTextstring
declineButtonColorstring
answerButtonTextstring
answerButtonColorstring
terminateAndAnswerButtonTextstring
terminateAndAnswerButtonColorstring
terminateButtonTextstring
terminateButtonColorstring
declineCallWaitingButtonTextstring
declineCallWaitingButtonColorstring
holdButtonTextstring
holdButtonColorstring
holdAndAnswerButtonTextstring
holdAndAnswerButtonColorstring
colorstring
durationnumber
channelNamestring
channelDescriptionstring
callingNamestring
callingNumberstring

CallInProgressNotificationSettings

PropType
iconstring
picturestring
terminateButtonTextstring
terminateButtonColorstring
holdButtonTextstring
holdButtonColorstring
colorstring
durationnumber
channelNamestring
channelDescriptionstring
callingNamestring
callingNumberstring

NotificationPermissionStatus

PropType
notificationsPermissionState

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

Partial

Make all properties in T optional

{ P in keyof T?: TP; }

PermissionState

'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'

NotificationResponse

'tap' | 'answer' | 'decline' | 'terminate' | 'hold'

7.3.0

9 months ago

7.1.0

9 months ago

7.4.4

8 months ago

7.4.2

8 months ago

7.4.1

9 months ago

7.4.8

8 months ago

7.4.7

8 months ago

7.4.6

8 months ago

7.4.5

8 months ago

7.4.9

8 months ago

3.0.0

10 months ago

6.0.0

9 months ago

7.0.0

9 months ago

7.4.0

9 months ago

7.2.0

9 months ago

7.5.3

6 months ago

7.5.2

6 months ago

7.5.0

7 months ago

3.1.0

10 months ago

7.5.5

6 months ago

7.5.4

6 months ago

7.4.14

8 months ago

7.4.15

8 months ago

7.4.16

8 months ago

7.4.17

8 months ago

7.4.10

8 months ago

7.4.11

8 months ago

7.4.12

8 months ago

7.4.13

8 months ago

1.3.4

2 years ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago