File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ export default class RNCallKit {
76
76
_RNCallKit . startCall ( uuid , handle , handleType , hasVideo ) ;
77
77
}
78
78
79
+ static reportConnectedOutgoingCallWithUUID ( uuid ) {
80
+ if ( Platform . OS !== 'ios' ) return ;
81
+ _RNCallKit . reportConnectedOutgoingCallWithUUID ( uuid ) ;
82
+ }
83
+
79
84
static endCall ( uuid ) {
80
85
if ( Platform . OS !== 'ios' ) return ;
81
86
_RNCallKit . endCall ( uuid ) ;
Original file line number Diff line number Diff line change @@ -160,6 +160,13 @@ - (void)dealloc
160
160
_isStartCallActionEventListenerAdded = YES ;
161
161
}
162
162
163
+ RCT_EXPORT_METHOD (reportConnectedOutgoingCallWithUUID:(NSString *)uuidString)
164
+ {
165
+ NSUUID *uuid = [[NSUUID alloc ] initWithUUIDString: uuidString];
166
+ [self .callKitProvider reportOutgoingCallWithUUID: uuid connectedAtDate: [NSDate date ]];
167
+ }
168
+
169
+
163
170
- (void )requestTransaction : (CXTransaction *)transaction
164
171
{
165
172
#ifdef DEBUG
@@ -343,6 +350,7 @@ - (void)provider:(CXProvider *)provider performStartCallAction:(CXStartCallActio
343
350
#ifdef DEBUG
344
351
NSLog (@" [RNCallKit][CXProviderDelegate][provider:performStartCallAction]" );
345
352
#endif
353
+ [self .callKitProvider reportOutgoingCallWithUUID: action.callUUID startedConnectingAtDate: [NSDate date ]];
346
354
[self configureAudioSession ];
347
355
[action fulfill ];
348
356
}
You can’t perform that action at this time.
0 commit comments