@@ -3,7 +3,11 @@ export type Events =
33 'answerCall' |
44 'endCall' |
55 'didActivateAudioSession' |
6+ 'didDeactivateAudioSession' |
67 'didDisplayIncomingCall' |
8+ 'didToggleHoldCallAction' |
9+ 'didPerformDTMFAction' |
10+ 'didResetProvider' |
711 'didPerformSetMutedCallAction' ;
812
913type HandleType = 'generic' | 'number' | 'email' ;
@@ -12,13 +16,18 @@ interface IOptions {
1216 ios : {
1317 appName : string ,
1418 imageName ?: string ,
19+ supportsVideo : false ,
20+ maximumCallGroups : '1' ,
21+ maximumCallsPerCallGroup : '1'
1522 ringtoneSound ?: string ,
1623 } ,
1724 android : {
1825 alertTitle : string ,
1926 alertDescription : string ,
2027 cancelButton : string ,
2128 okButton : string ,
29+ imageName ?: string ,
30+ additionalPermissions : string [ ] ,
2231 } ,
2332}
2433
@@ -41,6 +50,10 @@ export default class RNCallKeep {
4150
4251 }
4352
53+ static hasDefaultPhoneAccount ( ) : boolean {
54+
55+ }
56+
4457 static displayIncomingCall (
4558 uuid : string ,
4659 handle : string ,
@@ -51,15 +64,19 @@ export default class RNCallKeep {
5164
5265 }
5366
54- /**
55- * @description startCall method is available only on iOS.
56- */
5767 static startCall (
5868 uuid : string ,
5969 handle : string ,
70+ contactIdentifier ?: string ,
6071 handleType ?: HandleType ,
6172 hasVideo ?: boolean ,
62- contactIdentifier ?: string ,
73+ ) {
74+
75+ }
76+ static updateDisplay (
77+ uuid : string ,
78+ displayName : string ,
79+ handle : string ,
6380 ) {
6481
6582 }
@@ -71,6 +88,20 @@ export default class RNCallKeep {
7188
7289 }
7390
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+
74105 static endCall ( uuid : string ) {
75106
76107 }
@@ -93,30 +124,32 @@ export default class RNCallKeep {
93124
94125 }
95126
127+ static async hasOutgoingCall ( ) : Promise < boolean > {
128+
129+ }
130+
96131 /**
97132 * @description setMutedCall method is available only on iOS.
98133 */
99134 static setMutedCall ( uuid : string , muted : boolean ) {
100135
101136 }
102137
138+ static setOnHold ( uuid : string , held : boolean ) {
139+
140+ }
141+
103142 /**
104143 * @descriptions sendDTMF is used to send DTMF tones to the PBX.
105144 */
106145 static sendDTMF ( uuid : string , key : string ) {
107146
108147 }
109148
110- /**
111- * @description setMutedCall method is available only on iOS.
112- */
113149 static checkIfBusy ( ) : Promise < boolean > {
114150
115151 }
116152
117- /**
118- * @description setMutedCall method is available only on iOS.
119- */
120153 static checkSpeaker ( ) : Promise < boolean > {
121154
122155 }
@@ -128,16 +161,10 @@ export default class RNCallKeep {
128161
129162 }
130163
131- /**
132- * @description setAvailable method is available only on Android.
133- */
134164 static setCurrentCallActive ( ) {
135165
136166 }
137167
138- /**
139- * @description setAvailable method is available only on Android.
140- */
141168 static backToForeground ( ) {
142169
143170 }
0 commit comments