Skip to content

Commit 1b98744

Browse files
committed
Changed to overload reportNewIncomingCall method with the new parameter, so it is not a breaking change.
1 parent 96e8133 commit 1b98744

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

ios/RNCallKeep/RNCallKeep.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
continueUserActivity:(NSUserActivity *)userActivity
2828
restorationHandler:(void(^)(NSArray * __nullable restorableObjects))restorationHandler;
2929

30+
+ (void)reportNewIncomingCall:(NSString *)uuidString
31+
handle:(NSString *)handle
32+
handleType:(NSString *)handleType
33+
hasVideo:(BOOL)hasVideo
34+
localizedCallerName:(NSString * _Nullable)localizedCallerName
35+
fromPushKit:(BOOL)fromPushKit
36+
payload:(NSDictionary * _Nullable)payload;
37+
3038
+ (void)reportNewIncomingCall:(NSString *)uuidString
3139
handle:(NSString *)handle
3240
handleType:(NSString *)handleType

ios/RNCallKeep/RNCallKeep.m

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,17 @@ + (void)endCallWithUUID:(NSString *)uuidString
333333
}
334334
}
335335

336+
+ (void)reportNewIncomingCall:(NSString *)uuidString
337+
handle:(NSString *)handle
338+
handleType:(NSString *)handleType
339+
hasVideo:(BOOL)hasVideo
340+
localizedCallerName:(NSString * _Nullable)localizedCallerName
341+
fromPushKit:(BOOL)fromPushKit
342+
payload:(NSDictionary * _Nullable)payload
343+
{
344+
[RNCallKeep reportNewIncomingCall:uuidString handle:handle handleType:handleType hasVideo:hasVideo localizedCallerName:localizedCallerName fromPushKit:fromPushKit payload:payload withCompletionHandler:nil];
345+
}
346+
336347
+ (void)reportNewIncomingCall:(NSString *)uuidString
337348
handle:(NSString *)handle
338349
handleType:(NSString *)handleType

0 commit comments

Comments
 (0)