Browse Source

feat(ios) add ability to set CallKit options for incoming calls

The implemented options are the call handle and UUID.
master
Saúl Ibarra Corretgé 4 years ago
parent
commit
8477ae8daa

+ 13
- 0
ios/sdk/src/JitsiMeetConferenceOptions.h View File

71
 - (void)setFeatureFlag:(NSString *_Nonnull)flag withBoolean:(BOOL)value;
71
 - (void)setFeatureFlag:(NSString *_Nonnull)flag withBoolean:(BOOL)value;
72
 - (void)setFeatureFlag:(NSString *_Nonnull)flag withValue:(id _Nonnull)value;
72
 - (void)setFeatureFlag:(NSString *_Nonnull)flag withValue:(id _Nonnull)value;
73
 
73
 
74
+/**
75
+ * CallKit call handle, to be used when implementing incoming calls.
76
+ */
77
+@property (nonatomic, copy, nullable) NSString *callHandle;
78
+
79
+/**
80
+ * CallKit call UUID, to be used when implementing incoming calls.
81
+ */
82
+@property (nonatomic, copy, nullable) NSUUID *callUUID;
83
+
74
 @end
84
 @end
75
 
85
 
76
 @interface JitsiMeetConferenceOptions : NSObject
86
 @interface JitsiMeetConferenceOptions : NSObject
92
 
102
 
93
 @property (nonatomic, nullable) JitsiMeetUserInfo *userInfo;
103
 @property (nonatomic, nullable) JitsiMeetUserInfo *userInfo;
94
 
104
 
105
+@property (nonatomic, copy, nullable, readonly) NSString *callHandle;
106
+@property (nonatomic, copy, nullable, readonly) NSUUID *callUUID;
107
+
95
 + (instancetype _Nonnull)fromBuilder:(void (^_Nonnull)(JitsiMeetConferenceOptionsBuilder *_Nonnull))initBlock;
108
 + (instancetype _Nonnull)fromBuilder:(void (^_Nonnull)(JitsiMeetConferenceOptionsBuilder *_Nonnull))initBlock;
96
 - (instancetype _Nonnull)init NS_UNAVAILABLE;
109
 - (instancetype _Nonnull)init NS_UNAVAILABLE;
97
 
110
 

+ 12
- 0
ios/sdk/src/JitsiMeetConferenceOptions.m View File

52
         _videoMuted = nil;
52
         _videoMuted = nil;
53
 
53
 
54
         _userInfo = nil;
54
         _userInfo = nil;
55
+
56
+        _callHandle = nil;
57
+        _callUUID = nil;
55
     }
58
     }
56
     
59
     
57
     return self;
60
     return self;
168
         _featureFlags = [NSDictionary dictionaryWithDictionary:builder.featureFlags];
171
         _featureFlags = [NSDictionary dictionaryWithDictionary:builder.featureFlags];
169
 
172
 
170
         _userInfo = builder.userInfo;
173
         _userInfo = builder.userInfo;
174
+
175
+        _callHandle = builder.callHandle;
176
+        _callUUID = builder.callUUID;
171
     }
177
     }
172
 
178
 
173
     return self;
179
     return self;
205
     if (_subject != nil) {
211
     if (_subject != nil) {
206
         config[@"subject"] = self.subject;
212
         config[@"subject"] = self.subject;
207
     }
213
     }
214
+    if (_callHandle != nil) {
215
+        config[@"callHandle"] = self.callHandle;
216
+    }
217
+    if (_callUUID != nil) {
218
+        config[@"callUUID"] = [self.callUUID UUIDString];
219
+    }
208
 
220
 
209
     NSMutableDictionary *urlProps = [[NSMutableDictionary alloc] init];
221
     NSMutableDictionary *urlProps = [[NSMutableDictionary alloc] init];
210
 
222
 

Loading…
Cancel
Save