Inherits from SCDataTableViewController : UITableViewController
Declared in SCFriendDetailController.h

Overview

Presents the standard C2Call SDK Friend Detail Controller.

The Friends Detail Controller shows the details of a connected friend like name, firstname, user image, phone numbers, etc. It also provides user controls to call or chat with this friend.

Please use showFriendDetailForUserid: from UIViewController+SCCustomViewController.h to present this controller programmatically.

Properties

addPhoneNumberHeader

UIView containing the controls for Add Phone Number.

@property (nonatomic, strong) IBOutlet UIView *addPhoneNumberHeader

Declared In

SCFriendDetailController.h

btnAddNumber

Button Add Number.

@property (nonatomic, weak) IBOutlet UIButton *btnAddNumber

Declared In

SCFriendDetailController.h

btnEditNumber

Button Edit Number.

@property (nonatomic, weak) IBOutlet UIButton *btnEditNumber

Declared In

SCFriendDetailController.h

connectionCell

UITableViewCell subclass shows the call, video call and chat buttons.

@property (nonatomic, strong) UDConnectionCell *connectionCell

Declared In

SCFriendDetailController.h

labelAddPhoneNumber

Label Add Phone Number.

@property (nonatomic, weak) IBOutlet UILabel *labelAddPhoneNumber

Declared In

SCFriendDetailController.h

managedObjectId

Manages Object Id of the friend.

@property (nonatomic, strong) NSManagedObjectID *managedObjectId

Declared In

SCFriendDetailController.h

userInfoCell

UITableViewCell subclass shows the friend details.

@property (nonatomic, strong) UDUserInfoCell *userInfoCell

Declared In

SCFriendDetailController.h

Instance Methods

addPhoneNumber:

Adds a phone number for this friends.

- (IBAction)addPhoneNumber:(id)sender

Parameters

sender
  • The initiator of the action

Discussion

The profile of a friend shows on the on hand the phone number the friend has defined in his profile but on the other hand the user can also add further numbers to this friend, which will be stored as additional contact information.

Declared In

SCFriendDetailController.h

callVideo:

Call this friends via video call.

- (IBAction)callVideo:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCFriendDetailController.h

callVoice:

Call this friends via VoIP call.

- (IBAction)callVoice:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCFriendDetailController.h

chat:

Opens the chat for this friends.

- (IBAction)chat:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCFriendDetailController.h

configureConnectionCell:

Customize UDConnectionCell

- (void)configureConnectionCell:(id)elem

Parameters

elem

Discussion

Please always call super to initially set the cells content. Use the connectionCell property to customize the cell.

Declared In

SCFriendDetailController.h

configurePhoneCell:forIndexPath:

Customize UDPhoneCell

- (UDPhoneCell *)configurePhoneCell:(id)elem forIndexPath:(id)indexPath

Parameters

elem
indexPath
  • The current indexPath

Return Value

UDPhoneCell to present

Discussion

Please always call super to initially set the cells content.

Declared In

SCFriendDetailController.h

configureUserInfoCell:

Customize UDUserInfoCell

- (void)configureUserInfoCell:(id)elem

Parameters

elem

Discussion

Please always call super to initially set the cells content. Use the userInfoCell property to customize the cell.

In case the userStatus outlet is set, the UDUserInfoCell will be presented with the actual userStatus. The cell height will be flexible then. The height will be calculated by calling heightForUserInfoCell

Declared In

SCFriendDetailController.h

currentUser

MOC2CallUser object of the presented friend details.

- (MOC2CallUser *)currentUser

Declared In

SCFriendDetailController.h

editPhoneNumber:

Edits a phone number for this friends.

- (IBAction)editPhoneNumber:(id)sender

Parameters

sender
  • The initiator of the action

Discussion

The profile of a friend shows on the on hand the phone number the friend has defined in his profile but on the other handThe profile of a friend shows on the on hand the phone number the friend has defined in his profile but on the other hand the user can also add further numbers to this friend which will be stored as additional contact information. the user can also add further numbers to this friend, which will be stored as additional contact information. Only user added phone numbers can be edited.

Declared In

SCFriendDetailController.h

heightForUserInfoCell

Calculates the required height for UDUserInfoCell

- (CGFloat)heightForUserInfoCell

Return Value

The actual height

Declared In

SCFriendDetailController.h

smsAction:

Sends an SMS/Text message to a friends phone number.

- (IBAction)smsAction:(id)sender

Parameters

sender
  • The initiator of the action

Discussion

This method uses the sender.tag information (phone number hash value) as reference to the phone number.

Declared In

SCFriendDetailController.h