Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/ios/2.0/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if CometChat.getLoggedInUser() == nil {
NSString *uid = @"cometchat-uid-1";
NSString *authkey = @"YOUR_AUTH_KEY";

[CometChat loginWithUID:uid authkey:authey onSuccess:^(User * user) {
[CometChat loginWithUID:uid authkey:authkey onSuccess:^(User * user) {

NSLog(@"Login successful : %@",[user stringValue]);

Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/2.0/block-users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ BlockedUserRequest *blockedUserRequest = [[[BlockedUserRequestBuilder alloc]init

NSLog(@"Blocked user list fetched successfully.")

} OnError:^ (CometChatException *error){
} onError:^ (CometChatException *error){

NSLog(@"Fetching block user list failed with error: %@", error.errorDescription);

Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/2.0/change-member-scope.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CometChat.updateGroupMemberScope(UID: uid, GUID: guid, scope: scope, onSuccess:

This method takes the below parameters:

| Paramter | Description |
| Parameter | Description |
| -------- | -------------------------------------------------------------------------------------------------------------- |
| UID | The uid of the member |
| GUID | The guid of the group for which the member's scope needs to be changed |
Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/2.0/default-calling1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ In order to get the number of participants in any call, you can use the `getCall
```swift
let sessionID = "12345"

CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSucces: {
CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSuccess: {
(count) in
print("Count \(count)")
}, onError: { (error) in
Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/2.0/delete-a-conversation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This method takes two parameters. The unique id (UID/GUID) of the conversation t
CometChat.deleteConversation(conversationWith: "cometchat-uid-1", conversationType: .user, onSuccess: { message in
print("Conversation deleted",message)
}, onError: {error in
print("delete Convearstion failed with error: \(error?.errorDescription)")
print("delete Conversation failed with error: \(error?.errorDescription)")
})
```

Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/2.0/delivery-read-receipts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ int messageId =10101;

[CometChat getMessageReceipts:messageId onSuccess:^(NSArray<MessageReceipt *> * _Nonnull receipt) {

NSLog(@"getMesssageReceipts %@",receipt);
NSLog(@"getMessageReceipts %@",receipt);
} onError:^(CometChatException * _Nullable error) {

NSLog(@"CometChatException %@",error.errorDescription);
Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/2.0/direct-calling1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ In order to get the number of participants in any call, you can use the `getCall
```swift
let sessionID = "12345"

CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSucces: {
CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSuccess: {
(count) in
print("Count \(count)")
}, onError: { (error) in
Expand Down
8 changes: 4 additions & 4 deletions sdk/ios/2.0/kick-member-from-a-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CometChat.banGroupMember(UID: uid, GUID: guid, onSuccess: { (response) in

}) { (error) in

print("Group member baning failed with error: " + error!.errorDescription);
print("Group member banning failed with error: " + error!.errorDescription);
}
```

Expand All @@ -96,7 +96,7 @@ NSString *GUID = @"GUID";

} onError:^(CometChatException * error) {

NSLog(@"Group member baning failed with error: %@",[error errorDescription]);
NSLog(@"Group member banning failed with error: %@",[error errorDescription]);

}];
```
Expand Down Expand Up @@ -130,7 +130,7 @@ CometChat.unbanGroupMember(UID: uid, GUID: guid, onSuccess: { (response) in

}) { (error) in

print("Group member unbaning failed with error: " + error!.errorDescription);
print("Group member unbanning failed with error: " + error!.errorDescription);
}
```

Expand All @@ -146,7 +146,7 @@ NSString *GUID = @"GUID";

} onError:^(CometChatException * error) {

NSLog(@"Group member unbaning failed with error: %@",[error errorDescription]);
NSLog(@"Group member unbanning failed with error: %@",[error errorDescription]);

}];
```
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/2.0/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ let mySettings = AppSettings.AppSettingsBuilder().subscribePresenceForAllUsers()

CometChat.init(appId: appId ,appSettings: mySettings,onSuccess: { (isSuccess) in
if (isSuccess) {
print("CometChat Pro SDK intialise successfully.")
print("CometChat Pro SDK initialise successfully.")
}
}) { (error) in
print("CometChat Pro SDK failed intialise with error: \(error.errorDescription)")
print("CometChat Pro SDK failed initialise with error: \(error.errorDescription)")
}
return true
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/2.0/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ let mySettings = AppSettings.AppSettingsBuilder().subscribePresenceForAllUsers()

CometChat.init(appId: appId ,appSettings: mySettings,onSuccess: { (isSuccess) in
if (isSuccess) {
print("CometChat Pro SDK intialise successfully.")
print("CometChat Pro SDK initialise successfully.")
}
}) { (error) in
print("CometChat Pro SDK failed intialise with error: \(error.errorDescription)")
print("CometChat Pro SDK failed initialise with error: \(error.errorDescription)")
}
return true
}
Expand Down
8 changes: 4 additions & 4 deletions sdk/ios/2.0/upgrading-from-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ The `CometChat.init()` method now takes an additional parameter. This parameter
CometChat(appId: APP_ID, onSuccess: { (isSuccess) in

if (isSuccess) {
print("CometChat Pro SDK intialise successfully.")
print("CometChat Pro SDK initialise successfully.")
}
}) { (error) in
print("CometChat Pro SDK failed intialise with error:\(error.errorDescription)")
print("CometChat Pro SDK failed initialise with error:\(error.errorDescription)")
}


Expand All @@ -38,10 +38,10 @@ let appSettings = AppSettings.AppSettingsBuilder().subscribePresenceForAllUsers(

CometChat.init(appId: "appID", appSettings: appSettings, onSuccess: { (Success) in
if (isSuccess) {
print("CometChat Pro SDK intialise successfully.")
print("CometChat Pro SDK initialise successfully.")
}
}) { (error) in
print("CometChat Pro SDK failed intialise with error: \(error.errorDescription)")
print("CometChat Pro SDK failed initialise with error: \(error.errorDescription)")
}
```

Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/3.0/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if CometChat.getLoggedInUser() == nil {
NSString *uid = @"cometchat-uid-1";
NSString *authkey = @"YOUR_AUTH_KEY";

[CometChat loginWithUID:uid authkey:authey onSuccess:^(User * user) {
[CometChat loginWithUID:uid authkey:authkey onSuccess:^(User * user) {

NSLog(@"Login successful : %@",[user stringValue]);

Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/3.0/block-users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ BlockedUserRequest *blockedUserRequest = [[[BlockedUserRequestBuilder alloc]init

NSLog(@"Blocked user list fetched successfully.")

} OnError:^ (CometChatException *error){
} onError:^ (CometChatException *error){

NSLog(@"Fetching block user list failed with error: %@", error.errorDescription);

Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/3.0/change-member-scope.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ CometChat.updateGroupMemberScope(UID: uid, GUID: guid, scope: scope, onSuccess:

This method takes the below parameters:

| Paramter | Description |
| Parameter | Description |
| -------- | --------------------------------------------------------------------------------------------------------- |
| UID | The uid of the member |
| GUID | The guid of the group for which the member's scope needs to be changed |
Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/3.0/create-a-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ CometChat.createGroupWithMembers(group: group, members: members, banMembers: ban
dict in
print("Group created successfully",dict)
}, onError: { (error) in
print("Some error occured while creating group \(String(describing: error?.errorDescription))")
print("Some error occurred while creating group \(String(describing: error?.errorDescription))")
}
)
```
Expand Down
6 changes: 3 additions & 3 deletions sdk/ios/3.0/default-calling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Call *newCall = [[Call alloc]initWithReceiverId:receiverID callType:CallTypeVide

} onError:^(CometChatException * error) {

NSLog(@"Call initialization failed with error: %@",[error ErrorDescription]);
NSLog(@"Call initialization failed with error: %@",[error errorDescription]);
}];
```

Expand Down Expand Up @@ -182,7 +182,7 @@ CometChat.acceptCall(sessionID: incomingCall!.sessionID, onSuccess: { (ongoing_c

} onError:^(CometChatException * error) {

NSLog(@"Call accepting failed with error: %@",[error ErrorDescription]);
NSLog(@"Call accepting failed with error: %@",[error errorDescription]);

}];
```
Expand Down Expand Up @@ -222,7 +222,7 @@ CometChat.rejectCall(sessionID: (incomingCall?.sessionID)!, status: status, onSu
} onError:^(CometChatException * error) {

// Error
NSLog("Call rejection failed with exception: %@" + [error ErrorDescription]);
NSLog("Call rejection failed with exception: %@" + [error errorDescription]);
}];
```

Expand Down
12 changes: 6 additions & 6 deletions sdk/ios/3.0/default-calling1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Call *newCall = [[Call alloc]initWithReceiverId:receiverID callType:CallTypeVide

} onError:^(CometChatException * error) {

NSLog(@"Call initialization failed with error: %@",[error ErrorDescription]);
NSLog(@"Call initialization failed with error: %@",[error errorDescription]);
}];
```

Expand Down Expand Up @@ -177,7 +177,7 @@ CometChat.acceptCall(sessionID: incomingCall!.sessionID, onSuccess: { (ongoing_c

} onError:^(CometChatException * error) {

NSLog(@"Call accepting failed with error: %@",[error ErrorDescription]);
NSLog(@"Call accepting failed with error: %@",[error errorDescription]);

}];
```
Expand Down Expand Up @@ -217,7 +217,7 @@ CometChat.rejectCall(sessionID: (incomingCall?.sessionID)!, status: status, onSu
} onError:^(CometChatException * error) {

// Error
NSLog("Call rejection failed with exception: %@" + [error ErrorDescription]);
NSLog("Call rejection failed with exception: %@" + [error errorDescription]);
}];
```

Expand Down Expand Up @@ -330,7 +330,7 @@ CometChat.acceptCall(sessionID: incomingCall!.sessionId, onSuccess: { (ongoing_c

} onError:^(CometChatException * error) {

NSLog(@"Error: %@",[error ErrorDescription]);
NSLog(@"Error: %@",[error errorDescription]);

} callEnded:^(Call * call_ended) {

Expand All @@ -340,7 +340,7 @@ CometChat.acceptCall(sessionID: incomingCall!.sessionId, onSuccess: { (ongoing_c
} onError:^(CometChatException * error) {

// Error
NSLog(@" error %@",[error ErrorDescription]);
NSLog(@" error %@",[error errorDescription]);

}];

Expand Down Expand Up @@ -553,7 +553,7 @@ In order to get the number of participants in any call, you can use the `getCall
```swift
let sessionID = "12345"

CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSucces: {
CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSuccess: {
(count) in
print("Count \(count)")
}, onError: { (error) in
Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/3.0/delete-a-conversation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This method takes two parameters. The unique id (UID/GUID) of the conversation t
CometChat.deleteConversation(conversationWith: "cometchat-uid-1", conversationType: .user, onSuccess: { message in
print("Conversation deleted",message)
}, onError: {error in
print("delete Convearstion failed with error: \(error?.errorDescription)")
print("delete Conversation failed with error: \(error?.errorDescription)")
})
```

Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/3.0/delivery-read-receipts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ int messageId =10101;

[CometChat getMessageReceipts:messageId onSuccess:^(NSArray<MessageReceipt *> * _Nonnull receipt) {

NSLog(@"getMesssageReceipts %@",receipt);
NSLog(@"getMessageReceipts %@",receipt);
} onError:^(CometChatException * _Nullable error) {

NSLog(@"CometChatException %@",error.errorDescription);
Expand Down
2 changes: 1 addition & 1 deletion sdk/ios/3.0/direct-calling1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ In order to get the number of participants in any call, you can use the `getCall
```swift
let sessionID = "12345"

CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSucces: {
CometChat.getCallParticipantCount(sessionId: "", type: .DIRECT, onSuccess: {
(count) in
print("Count \(count)")
}, onError: { (error) in
Expand Down
8 changes: 4 additions & 4 deletions sdk/ios/3.0/kick-member-from-a-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CometChat.banGroupMember(UID: uid, GUID: guid, onSuccess: { (response) in

}) { (error) in

print("Group member baning failed with error: " + error!.errorDescription);
print("Group member banning failed with error: " + error!.errorDescription);
}
```

Expand All @@ -96,7 +96,7 @@ NSString *GUID = @"GUID";

} onError:^(CometChatException * error) {

NSLog(@"Group member baning failed with error: %@",[error errorDescription]);
NSLog(@"Group member banning failed with error: %@",[error errorDescription]);

}];
```
Expand Down Expand Up @@ -130,7 +130,7 @@ CometChat.unbanGroupMember(UID: uid, GUID: guid, onSuccess: { (response) in

}) { (error) in

print("Group member unbaning failed with error: " + error!.errorDescription);
print("Group member unbanning failed with error: " + error!.errorDescription);
}
```

Expand All @@ -146,7 +146,7 @@ NSString *GUID = @"GUID";

} onError:^(CometChatException * error) {

NSLog(@"Group member unbaning failed with error: %@",[error errorDescription]);
NSLog(@"Group member unbanning failed with error: %@",[error errorDescription]);

}];
```
Expand Down
4 changes: 2 additions & 2 deletions sdk/ios/3.0/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ let mySettings = AppSettings.AppSettingsBuilder()

CometChat.init(appId: appId ,appSettings: mySettings,onSuccess: { (isSuccess) in
if (isSuccess) {
print("CometChat Pro SDK intialise successfully.")
print("CometChat Pro SDK initialise successfully.")
}
}) { (error) in
print("CometChat Pro SDK failed intialise with error: \(error.errorDescription)")
print("CometChat Pro SDK failed initialise with error: \(error.errorDescription)")
}
return true
}
Expand Down
Loading