File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ class RNCallKitExample extends React.Component {
245
245
RNCallKit .addEventListener (' answerCall' , this .onRNCallKitPerformAnswerCallAction );
246
246
RNCallKit .addEventListener (' endCall' , this .onRNCallKitPerformEndCallAction );
247
247
RNCallKit .addEventListener (' didActivateAudioSession' , this .onRNCallKitDidActivateAudioSession );
248
+ RNCallKit .addEventListener (' didDisplayIncomingCall' , this .onRNCallKitDidDisplayIncomingCall );
248
249
}
249
250
250
251
onRNCallKitDidReceiveStartCallAction (data ) {
@@ -285,6 +286,12 @@ class RNCallKitExample extends React.Component {
285
286
*/
286
287
}
287
288
289
+ onRNCallKitDidDisplayIncomingCall (error ) {
290
+ /* You will get this event after RNCallKit finishes showing incoming call UI
291
+ * You can check if there was an error while displaying
292
+ */
293
+ }
294
+
288
295
// This is a fake function where you can receive incoming call notifications
289
296
onIncomingCall () {
290
297
// Store the generated uuid somewhere
You can’t perform that action at this time.
0 commit comments