@@ -3,7 +3,11 @@ export type Events =
3
3
'answerCall' |
4
4
'endCall' |
5
5
'didActivateAudioSession' |
6
+ 'didDeactivateAudioSession' |
6
7
'didDisplayIncomingCall' |
8
+ 'didToggleHoldCallAction' |
9
+ 'didPerformDTMFAction' |
10
+ 'didResetProvider' |
7
11
'didPerformSetMutedCallAction' ;
8
12
9
13
type HandleType = 'generic' | 'number' | 'email' ;
@@ -12,13 +16,18 @@ interface IOptions {
12
16
ios : {
13
17
appName : string ,
14
18
imageName ?: string ,
19
+ supportsVideo : false ,
20
+ maximumCallGroups : '1' ,
21
+ maximumCallsPerCallGroup : '1'
15
22
ringtoneSound ?: string ,
16
23
} ,
17
24
android : {
18
25
alertTitle : string ,
19
26
alertDescription : string ,
20
27
cancelButton : string ,
21
28
okButton : string ,
29
+ imageName ?: string ,
30
+ additionalPermissions : string [ ] ,
22
31
} ,
23
32
}
24
33
@@ -41,6 +50,10 @@ export default class RNCallKeep {
41
50
42
51
}
43
52
53
+ static hasDefaultPhoneAccount ( ) : boolean {
54
+
55
+ }
56
+
44
57
static displayIncomingCall (
45
58
uuid : string ,
46
59
handle : string ,
@@ -51,15 +64,19 @@ export default class RNCallKeep {
51
64
52
65
}
53
66
54
- /**
55
- * @description startCall method is available only on iOS.
56
- */
57
67
static startCall (
58
68
uuid : string ,
59
69
handle : string ,
70
+ contactIdentifier ?: string ,
60
71
handleType ?: HandleType ,
61
72
hasVideo ?: boolean ,
62
- contactIdentifier ?: string ,
73
+ ) {
74
+
75
+ }
76
+ static updateDisplay (
77
+ uuid : string ,
78
+ displayName : string ,
79
+ handle : string ,
63
80
) {
64
81
65
82
}
@@ -71,6 +88,20 @@ export default class RNCallKeep {
71
88
72
89
}
73
90
91
+ /**
92
+ * @description reportConnectedOutgoingCallWithUUID method is available only on iOS.
93
+ */
94
+ static reportConnectingOutgoingCallWithUUID ( uuid : string ) : void {
95
+
96
+ }
97
+ static reportEndCallWithUUID ( uuid : string , reason : number ) : void {
98
+
99
+ }
100
+
101
+ static rejectCall ( uuid : string ) {
102
+
103
+ }
104
+
74
105
static endCall ( uuid : string ) {
75
106
76
107
}
@@ -93,30 +124,32 @@ export default class RNCallKeep {
93
124
94
125
}
95
126
127
+ static async hasOutgoingCall ( ) : Promise < boolean > {
128
+
129
+ }
130
+
96
131
/**
97
132
* @description setMutedCall method is available only on iOS.
98
133
*/
99
134
static setMutedCall ( uuid : string , muted : boolean ) {
100
135
101
136
}
102
137
138
+ static setOnHold ( uuid : string , held : boolean ) {
139
+
140
+ }
141
+
103
142
/**
104
143
* @descriptions sendDTMF is used to send DTMF tones to the PBX.
105
144
*/
106
145
static sendDTMF ( uuid : string , key : string ) {
107
146
108
147
}
109
148
110
- /**
111
- * @description setMutedCall method is available only on iOS.
112
- */
113
149
static checkIfBusy ( ) : Promise < boolean > {
114
150
115
151
}
116
152
117
- /**
118
- * @description setMutedCall method is available only on iOS.
119
- */
120
153
static checkSpeaker ( ) : Promise < boolean > {
121
154
122
155
}
@@ -128,16 +161,10 @@ export default class RNCallKeep {
128
161
129
162
}
130
163
131
- /**
132
- * @description setAvailable method is available only on Android.
133
- */
134
164
static setCurrentCallActive ( ) {
135
165
136
166
}
137
167
138
- /**
139
- * @description setAvailable method is available only on Android.
140
- */
141
168
static backToForeground ( ) {
142
169
143
170
}
0 commit comments