Browse Source

chore(ios) remove warnings on JitsiMeetView

master
tmoldovan8x8 4 years ago
parent
commit
67930edae2
No account linked to committer's email address

+ 2
- 2
ios/sdk/src/ExternalAPI.h View File

20
 
20
 
21
 - (void)sendHangUp;
21
 - (void)sendHangUp;
22
 - (void)sendSetAudioMuted:(BOOL)muted;
22
 - (void)sendSetAudioMuted:(BOOL)muted;
23
-- (void)sendEndpointTextMessage:(NSString*)to :(NSString*)message;
23
+- (void)sendEndpointTextMessage:(NSString*)message :(NSString*)to;
24
 - (void)toggleScreenShare;
24
 - (void)toggleScreenShare;
25
 - (void)retrieveParticipantsInfo:(void (^)(NSArray*))completion;
25
 - (void)retrieveParticipantsInfo:(void (^)(NSArray*))completion;
26
 - (void)openChat:(NSString*)to;
26
 - (void)openChat:(NSString*)to;
27
 - (void)closeChat;
27
 - (void)closeChat;
28
-- (void)sendChatMessage:(NSString*)to :(NSString*)message;
28
+- (void)sendChatMessage:(NSString*)message :(NSString*)to ;
29
 
29
 
30
 @end
30
 @end

+ 2
- 2
ios/sdk/src/ExternalAPI.m View File

153
     [self sendEventWithName:setAudioMutedAction body:data];
153
     [self sendEventWithName:setAudioMutedAction body:data];
154
 }
154
 }
155
 
155
 
156
-- (void)sendEndpointTextMessage:(NSString*)to :(NSString*)message {
156
+- (void)sendEndpointTextMessage:(NSString*)message :(NSString*)to {
157
     NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
157
     NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
158
     data[@"to"] = to;
158
     data[@"to"] = to;
159
     data[@"message"] = message;
159
     data[@"message"] = message;
185
     [self sendEventWithName:closeChatAction body:nil];
185
     [self sendEventWithName:closeChatAction body:nil];
186
 }
186
 }
187
 
187
 
188
-- (void)sendChatMessage:(NSString*)to :(NSString*)message {
188
+- (void)sendChatMessage:(NSString*)message :(NSString*)to {
189
     NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
189
     NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
190
     data[@"to"] = to;
190
     data[@"to"] = to;
191
     data[@"message"] = message;
191
     data[@"message"] = message;

+ 4
- 4
ios/sdk/src/JitsiMeetView.h View File

38
 - (void)leave;
38
 - (void)leave;
39
 - (void)hangUp;
39
 - (void)hangUp;
40
 - (void)setAudioMuted:(BOOL)muted;
40
 - (void)setAudioMuted:(BOOL)muted;
41
-- (void)sendEndpointTextMessage:(NSString*)to :(NSString*)message;
41
+- (void)sendEndpointTextMessage:(NSString * _Nonnull)message :(NSString * _Nullable)to;
42
 - (void)toggleScreenShare;
42
 - (void)toggleScreenShare;
43
-- (void)retrieveParticipantsInfo:(void (^)(NSArray*))completionHandler;
44
-- (void)openChat:(NSString*)to;
43
+- (void)retrieveParticipantsInfo:(void (^ _Nonnull)(NSArray * _Nullable))completionHandler;
44
+- (void)openChat:(NSString * _Nullable)to;
45
 - (void)closeChat;
45
 - (void)closeChat;
46
-- (void)sendChatMessage:(NSString*)to :(NSString*)message;
46
+- (void)sendChatMessage:(NSString * _Nonnull)message :(NSString * _Nullable)to;
47
 
47
 
48
 @end
48
 @end

+ 5
- 5
ios/sdk/src/JitsiMeetView.m View File

125
     [externalAPI sendSetAudioMuted:muted];
125
     [externalAPI sendSetAudioMuted:muted];
126
 }
126
 }
127
 
127
 
128
-- (void)sendEndpointTextMessage:(NSString*)to :(NSString*)message {
128
+- (void)sendEndpointTextMessage:(NSString * _Nonnull)message :(NSString * _Nullable)to {
129
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
129
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
130
-    [externalAPI sendEndpointTextMessage:to :message];
130
+    [externalAPI sendEndpointTextMessage:message :to];
131
 }
131
 }
132
 
132
 
133
 - (void)toggleScreenShare {
133
 - (void)toggleScreenShare {
135
     [externalAPI toggleScreenShare];
135
     [externalAPI toggleScreenShare];
136
 }
136
 }
137
 
137
 
138
-- (void)retrieveParticipantsInfo:(void (^)(NSArray*))completionHandler {
138
+- (void)retrieveParticipantsInfo:(void (^ _Nonnull)(NSArray * _Nullable))completionHandler {
139
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
139
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
140
     [externalAPI retrieveParticipantsInfo:completionHandler];
140
     [externalAPI retrieveParticipantsInfo:completionHandler];
141
 }
141
 }
150
     [externalAPI closeChat];
150
     [externalAPI closeChat];
151
 }
151
 }
152
 
152
 
153
-- (void)sendChatMessage:(NSString*)to :(NSString*)message  {
153
+- (void)sendChatMessage:(NSString * _Nonnull)message :(NSString * _Nullable)to {
154
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
154
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
155
-    [externalAPI sendChatMessage:to :message];
155
+    [externalAPI sendChatMessage:message :to];
156
 }
156
 }
157
 
157
 
158
 #pragma mark Private methods
158
 #pragma mark Private methods

Loading…
Cancel
Save