7.1 Create Group

Using createGroup:groupType:success:failure method, a new group is created. The group can be either of type GroupTypePublic or GroupTypePrivate. The user creating the group automatically becomes a member of the group, with full authorization for complete group-management functionality for that group. The developer can choose to enforce more fine-grained access controls if desired.+

Method parameters :

  • groupName : Group name(Optional).

  • groupType : Type of group.

  • success : Success block to be executed after group is successfully created.

  • failure : Failure block to be executed if group creation fails, returns BayunError.

[[BayunCore sharedInstance] createGroup:@"groupName" groupType:GroupTypePublic success:^{
     NSLog(@"Group created successfully.");
 } failure:^(BayunErrorbayunError) {
    NSLog(@"Error creating group.");
 }];

Last updated