ソースを参照

chore(ios) remove warnings on JitsiMeetView

master
tmoldovan8x8 4年前
コミット
67930edae2
コミッターのメールアドレスに関連付けられたアカウントが存在しません
4個のファイルの変更13行の追加13行の削除
  1. 2
    2
      ios/sdk/src/ExternalAPI.h
  2. 2
    2
      ios/sdk/src/ExternalAPI.m
  3. 4
    4
      ios/sdk/src/JitsiMeetView.h
  4. 5
    5
      ios/sdk/src/JitsiMeetView.m

+ 2
- 2
ios/sdk/src/ExternalAPI.h ファイルの表示

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

+ 2
- 2
ios/sdk/src/ExternalAPI.m ファイルの表示

@@ -153,7 +153,7 @@ RCT_EXPORT_METHOD(sendEvent:(NSString *)name
153 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 157
     NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
158 158
     data[@"to"] = to;
159 159
     data[@"message"] = message;
@@ -185,7 +185,7 @@ RCT_EXPORT_METHOD(sendEvent:(NSString *)name
185 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 189
     NSMutableDictionary *data = [[NSMutableDictionary alloc] init];
190 190
     data[@"to"] = to;
191 191
     data[@"message"] = message;

+ 4
- 4
ios/sdk/src/JitsiMeetView.h ファイルの表示

@@ -38,11 +38,11 @@
38 38
 - (void)leave;
39 39
 - (void)hangUp;
40 40
 - (void)setAudioMuted:(BOOL)muted;
41
-- (void)sendEndpointTextMessage:(NSString*)to :(NSString*)message;
41
+- (void)sendEndpointTextMessage:(NSString * _Nonnull)message :(NSString * _Nullable)to;
42 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 45
 - (void)closeChat;
46
-- (void)sendChatMessage:(NSString*)to :(NSString*)message;
46
+- (void)sendChatMessage:(NSString * _Nonnull)message :(NSString * _Nullable)to;
47 47
 
48 48
 @end

+ 5
- 5
ios/sdk/src/JitsiMeetView.m ファイルの表示

@@ -125,9 +125,9 @@ static void initializeViewsMap() {
125 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 129
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
130
-    [externalAPI sendEndpointTextMessage:to :message];
130
+    [externalAPI sendEndpointTextMessage:message :to];
131 131
 }
132 132
 
133 133
 - (void)toggleScreenShare {
@@ -135,7 +135,7 @@ static void initializeViewsMap() {
135 135
     [externalAPI toggleScreenShare];
136 136
 }
137 137
 
138
-- (void)retrieveParticipantsInfo:(void (^)(NSArray*))completionHandler {
138
+- (void)retrieveParticipantsInfo:(void (^ _Nonnull)(NSArray * _Nullable))completionHandler {
139 139
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
140 140
     [externalAPI retrieveParticipantsInfo:completionHandler];
141 141
 }
@@ -150,9 +150,9 @@ static void initializeViewsMap() {
150 150
     [externalAPI closeChat];
151 151
 }
152 152
 
153
-- (void)sendChatMessage:(NSString*)to :(NSString*)message  {
153
+- (void)sendChatMessage:(NSString * _Nonnull)message :(NSString * _Nullable)to {
154 154
     ExternalAPI *externalAPI = [[JitsiMeet sharedInstance] getExternalAPI];
155
-    [externalAPI sendChatMessage:to :message];
155
+    [externalAPI sendChatMessage:message :to];
156 156
 }
157 157
 
158 158
 #pragma mark Private methods

読み込み中…
キャンセル
保存