Inherits from SCDataTableViewController : UITableViewController
Declared in SCFriendListController.h

Overview

Presents the standard C2Call SDK Friend List Controller.

The FriendList has support for presence information and supports several filter options:

SCFriendFilter_ONLINE - Shows only Online Users
SCFriendFilter_RECENT - Shows only Users I've been in contact in the past 7 days
SCFriendFilter_FAVORITE - Shows only Favorite Users
SCFriendFilter_GROUPS - Shows only Groups

In addition a TextFilter can be set, which filters for the given text in Firstname, Lastname and Email Address.

Properties

activeFilterInfo

Provides a readable text, which Filters are currently active.

@property (nonatomic, strong) NSString *activeFilterInfo

Declared In

SCFriendListController.h

friendDetailAction

Sets the default behavior when clicking on a Friend Item.

@property (nonatomic) SCFriendListDetailActionType friendDetailAction

Discussion

SCFriendDetailAction_FriendDetail - Opens the Friend Detail Controller
SCFriendDetailAction_Chat - Opens the Chat View for this Friend

Declared In

SCFriendListController.h

highlightedCellBackground

Highlighted Cell Background Color.

@property (nonatomic, strong) UIColor *highlightedCellBackground

Discussion

Active Group Calls will be automatically highlighted. Set the highlight color here.

Declared In

SCFriendListController.h

Instance Methods

configureCell:forElement:atIndexPath:

Configure FriendList TableView Cell

- (void)configureCell:(id)cell forElement:(id)elem atIndexPath:(id)indexPath

Parameters

cell
  • the actual UITableViewCell sub-class
elem
indexPath
  • the indexPath

Discussion

Overwrite this method to change the look and colors of the friend cell in your friend list Call super to initially set the cells content

Declared In

SCFriendListController.h

filterMenu:

Displays the Filter PopupMenu.

- (IBAction)filterMenu:(id)sender

Parameters

sender
  • The initiator of the action

Discussion

Standard Implementation:

SCPopupMenu *popup = [SCPopupMenu popupMenu:self];

[popup addChoiceWithName:NSLocalizedString(@"Remove Filter", @"Filter Action") andSubTitle:nil andIcon:nil andCompletion:^{
    [self removeAllFilter:nil];
}];

[popup addChoiceWithName:NSLocalizedString(@"Online", @"Filter Action") andSubTitle:nil andIcon:nil andCompletion:^{
    [self setFriendFilter:SCFriendFilter_ONLINE];
}];

[popup addChoiceWithName:NSLocalizedString(@"Groups", @"Filter Action") andSubTitle:nil andIcon:nil andCompletion:^{
    [self setFriendFilter:SCFriendFilter_GROUPS];
}];

[popup addChoiceWithName:NSLocalizedString(@"Favorites", @"Filter Action") andSubTitle:nil andIcon:nil andCompletion:^{
    [self setFriendFilter:SCFriendFilter_FAVORITE];
}];

[popup addChoiceWithName:NSLocalizedString(@"Recent", @"Filter Action") andSubTitle:nil andIcon:nil andCompletion:^{
    [self setFriendFilter:SCFriendFilter_RECENT];
}];

[popup addCancelWithName:NSLocalizedString(@"Cancel", @"Button") andCompletion:^{
}];

[popup showMenu];    

Declared In

SCFriendListController.h

removeAllFilter:

Removes all active Filter.

- (IBAction)removeAllFilter:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCFriendListController.h

removeTextFilter

Removes the current TextFilter.

- (void)removeTextFilter

Declared In

SCFriendListController.h

setFriendFilter:

Sets the filter.

- (void)setFriendFilter:(id)filter

Parameters

filter
  • The Filter Type, one of SCFriendListFilterType

Declared In

SCFriendListController.h

setTextFilterForText:

Sets the current TextFilter.

- (void)setTextFilterForText:(id)text

Parameters

text
  • Text to filter for

Declared In

SCFriendListController.h