瀏覽代碼

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 年之前
父節點
當前提交
8477ae8daa
共有 2 個檔案被更改,包括 25 行新增0 行删除
  1. 13
    0
      ios/sdk/src/JitsiMeetConferenceOptions.h
  2. 12
    0
      ios/sdk/src/JitsiMeetConferenceOptions.m

+ 13
- 0
ios/sdk/src/JitsiMeetConferenceOptions.h 查看文件

@@ -71,6 +71,16 @@
71 71
 - (void)setFeatureFlag:(NSString *_Nonnull)flag withBoolean:(BOOL)value;
72 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 84
 @end
75 85
 
76 86
 @interface JitsiMeetConferenceOptions : NSObject
@@ -92,6 +102,9 @@
92 102
 
93 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 108
 + (instancetype _Nonnull)fromBuilder:(void (^_Nonnull)(JitsiMeetConferenceOptionsBuilder *_Nonnull))initBlock;
96 109
 - (instancetype _Nonnull)init NS_UNAVAILABLE;
97 110
 

+ 12
- 0
ios/sdk/src/JitsiMeetConferenceOptions.m 查看文件

@@ -52,6 +52,9 @@ static NSString *const WelcomePageEnabledFeatureFlag = @"welcomepage.enabled";
52 52
         _videoMuted = nil;
53 53
 
54 54
         _userInfo = nil;
55
+
56
+        _callHandle = nil;
57
+        _callUUID = nil;
55 58
     }
56 59
     
57 60
     return self;
@@ -168,6 +171,9 @@ static NSString *const WelcomePageEnabledFeatureFlag = @"welcomepage.enabled";
168 171
         _featureFlags = [NSDictionary dictionaryWithDictionary:builder.featureFlags];
169 172
 
170 173
         _userInfo = builder.userInfo;
174
+
175
+        _callHandle = builder.callHandle;
176
+        _callUUID = builder.callUUID;
171 177
     }
172 178
 
173 179
     return self;
@@ -205,6 +211,12 @@ static NSString *const WelcomePageEnabledFeatureFlag = @"welcomepage.enabled";
205 211
     if (_subject != nil) {
206 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 221
     NSMutableDictionary *urlProps = [[NSMutableDictionary alloc] init];
210 222
 

Loading…
取消
儲存