7.11 Leave Group
The leaveGroup:success:failure
method is used to leave any joined group.
Method parameters :
groupId : Group Id of the Group.
success : Success block to be executed after group is left.
failure : Failure block to be executed if group could not be left, returns
BayunError
.
[[BayunCore sharedInstance]leaveGroup: @"groupId" success:^{
NSLog(@"Group left successfully");
} failure:^(BayunError error) {
NSLog(@"Error leaving the group");
}];
Last updated
Was this helpful?