Inherits from UITableViewController
Declared in SCAddGroupController.h

Overview

Presents the standard C2Call SDK Add Group Controller.

In C2Call SDK group represents a group of C2Call users who can participate in a voice chat, video chat and text chat. The Add Group Controller creates a new group and allows adding friends to this group. Once the group is created all members will be notified on the new group. When calling the group all members will be notified that a conference call is running for this group and they may join. When sending a message to this group all group members will receive this message as chat message.

In a video group call, up to 7 participants are able to join the call. Further participants can join via voice call.

Properties

members

Array of friend userids as group members.

@property (nonatomic, strong) NSArray *members

Declared In

SCAddGroupController.h

Instance Methods

addMembers:

Add Group Members Action.

- (IBAction)addMembers:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCAddGroupController.h

createGroup:

Creat Group Action.

- (IBAction)createGroup:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCAddGroupController.h

setAddGroupAction:

Action Block to be called after the group has been successfully added.

- (void)setAddGroupAction:(id)action

Parameters

action
  • The Action Block

Discussion

After the Group has been created the developer might want to show the group details:

#import <SocialCommunication/UIViewController+SCCustomViewController.h>
...skip....
[controller setAddGroupAction:^(NSString *groupid){
    dispatch_async(dispatch_get_main_queue(), ^(){
        // Close the Add Group Controller
        [self.navigationController popViewControllerAnimated:NO];

        // Present the Group Detail Controller
        [self showGroupDetailForGroupid:groupid];

    });
}];

Declared In

SCAddGroupController.h

setCancelAction:

Action Block to be called on cancel add group.

- (void)setCancelAction:(id)action

Parameters

action
  • The Action Block

Declared In

SCAddGroupController.h