Conversations (Discontinued)

🚧

Note

Please note that we have announced end of sale for iOS UI SDK. It is no longer offered as a standard Webex Connect capability.

The Webex Connect UI SDK for iOS builds on the message transport capabilities exposed within the Core SDK through a collection of customisable user interface components. These components may be used to easily integrate a fully-featured rich messaging capability within a host application.

ICConversationsViewController

Displays a list of conversations for the current user and a floating action button for creating a new conversation, use this view controller when you wish to integrate a conversation list within your own layouts.

The view controller does not open or create new conversations directly, instead, events are raised through the ICConversationsViewControllerDelegate and it is your responsibility to write the code in response to those events if you are not using ICConversationSplitViewController.

Message data is lazily loaded from a local ICMessageStore and remotely from the Webex Connect backend services. To achieve the best possible user experience it is recommended that you configure an appropriate message synchronization policy within the Core SDK in order to pre-fetch data.

Prerequisites

This component loads data from ICMessageStore and therefore requires that a valid instance is set within the Core SDK, please refer to ICMessaging messageStore.

If you are not using ICConversationSplitViewController, you must implement the ICConversationsViewControllerDelegate.

Properties

delegateICConversationsViewControllerDelegateThe delegate of the ICConversationsViewController
avatarUIImageThe avatar that will be displayed next to each conversation

Methods

SyntaxDescription
(void) reloadReloads the whole conversation list

Below properties have been added to this class to implement accessibility to the elements of this class.

Properties:

@property (nonatomic) NSString *titleAccessibilityText;The conversations screen title's accessibility text

Sample Code:

ICConversationsViewController *conversationsVC = conversationSplitViewControllerInstance.conversationsViewController;
conversationVC.titleLabelAccessibilityText = @”title”;
conversationVC.audioRecordStateLabelTextColor = [UIColor blueColor];

Responding to events

Whenever a user selects a conversation or taps the create conversation button, the appropriate event will be raised through the ICConversationsViewControllerDelegate interface.

ICConversationsViewControllerDelegate

Methods:

SyntaxDescription
(void)conversationsViewController: (ICConversationsViewController)conversationsViewController didSelectThread:(ICThread *)threadInvoked when a user selects a conversation within the view controller. Conversations are represented by an ICThread object, please refer to the Core SDK documentation for details. Typically, you will use the id within ICThread to open the conversation.
(void)conversationsViewControllerDidSelectCreateThread: (ICConversationsViewController )conversationsViewControllerInvoked when a user taps the conversations view create button.
(void)conversationsViewControllerDidTapOnBackButton:(ICConversationsViewController )conversationsViewController;Invoked when a user taps the conversations view back button.

ICInboxTableView

This component displays a list of conversations that are provided via the dataSource.

Styling:
This class allows you to customise the conversations table view.

Properties:

inboxDataSourceidSee ICInboxTableViewDataSource description
inboxDelegateidSee ICInboxTableViewDelegate
cellFactoryICMessageTableViewCellFactorySee ICMessageTableViewCellFactory description
selectedIndexesNSMutableArrayThe selected indexes
backgroundColorUIColorThe table view background color

Sample Code

[[ICInboxTableView appearance] setBackgroundColor:[UIColor lightGrayColor]];

Methods:

SyntaxDescription
- (void) reloadMessagesReloads the inbox display.
- (void)addMessagePartViewFactory:(id)messagePartViewFactory forContentType:(NSString *)contentTypeAdds a messagePartViewFactory instance in the list of all messagePartViewFactories
to create the MessagePartView
The content type is used to retrieve the good factory
* based on the content type of the encountered message part.
- (void)enableMultipleSelection:(BOOL)isEnabledEnables the multiple row selection
- (void)scrollToMessage:(id)messageData animated:(BOOL)animatedScrolls to a message in the inbox

ICInboxTableViewDataSource

Contains the methods needed to populate the ICInboxTableView with some data

Methods:

SyntaxDescription
- (NSInteger)numberOfMessagesInInboxTableView:(ICInboxTableView *)inboxTableViewTells the data source to return the number of messages that will be displayed in the inbox table view
- (id)inboxTableView:(ICInboxTableView )inboxTableView messageDataForRowAtIndexPath:(NSIndexPath )indexPathAsks the data source the message data that will be represented by the cell
- (NSArray )inboxTableView:(ICInboxTableView )inboxTableView messagePartsFromMessageData:(id)messageDataAsks the data source the message part that will be displayed for a message data
- (NSInteger)inboxTableView:(ICInboxTableView )inboxTableView numberOfUnreadMessagesAtIndexPath:(NSIndexPath )indexPathTells the data source to return the number of unread messages for the cell
- (BOOL)inboxTableView:(ICInboxTableView )inboxTableView shouldDisplayUnreadIndicatorAtIndexPath:(NSIndexPath )indexPathTells the data source to display the unread indicator
- (UIImage )inboxTableView:(ICInboxTableView )inboxTableView avatarForMessageData:(id)messageDataAsks the data source to provide the avatar for a specified message

ICInboxTableViewDelegate

Contains the methods needed to handle an event on the ICInboxTableView.

Methods:

SyntaxDescription
- (CGFloat)inboxTableView:(ICInboxTableView )inboxTableView heightForMessageCellAtIndexPath:(NSIndexPath )indexPathAsks the data source for the height to use for a message cell in a specified location.
- (void)inboxTableView:(ICInboxTableView )inboxTableView didSelectMessageDataAtIndexPath:(NSIndexPath )indexPathTells the delegate that a message has been selected
- (void)inboxTableView:(ICInboxTableView )inboxTableView didDeleteMessageDataAtIndexPath:(NSIndexPath )indexPathTells the delegate that a message has been deleted

ICInboxMessageTableViewCell

This component is a concrete implementation of the ICMessageTableViewCell.

Below properties have been added to this class to implement accessibility to the elements of this class.

Properties:

PropertyDescription
@property (nonatomic) NSString *avatarAccessibilityText UI_APPEARANCE_SELECTOR;The avatar image's accessibility text
@property (nonatomic) NSString *titleLabelAccessibilityText UI_APPEARANCE_SELECTOR;The title label's accessibility text
@property (nonatomic) NSString *dateLabelAccessibilityText UI_APPEARANCE_SELECTOR;The date label's accessibility text
@property (nonatomic) NSString *unreadMessageCountLabelAccessibilityText UI_APPEARANCE_SELECTOR;The unread message count label's accessibility text
@property (nonatomic) UIImage *accessoryImage UI_APPEARANCE_SELECTOR;The accessory view image of the cell
@property (nonatomic) CGSize accessoryViewSize UI_APPEARANCE_SELECTOR;The accessory view size of the cell. Default size is (30,30).

Sample Code:

[[ICInboxMessageTableViewCell appearance] setAvatarAccessibilityText:@”Avatar Image”];

Styling:

This class allows you to customise the conversations list.

Properties:

dateFontUIFontThe font of the date label
dateTextColorUIColorThe text color of the date label
badgeFontUIFontThe font of the badge label
badgeTextColorUIColorThe text color of the badge
badgeBackgroundColorUIColorThe background color of the badge
badgeCornerRadiusCGFloatThe corner radius of the badge
unreadMessageFontUIFontThe unread message font
unreadMessageTextColorUIColorThe unread message text color
unreadDateFontUIFontThe unread date font
unreadDateTextColorUIColorThe unread date text color
readMessageFontUIFontThe read message font
readMessageTextColorUIColorThe read message text color
titleFontUIFontThe font of the title label
titleTextColorUIColorThe text color of the title label
containerTextColorUIColorThe container text color

Sample Code

[[ICInboxMessageTableViewCell appearance] setTitleTextColor:[UIColor blueColor]];
[[ICInboxMessageTableViewCell appearance] setDateTextColor:[UIColor redColor]];
[[ICInboxMessageTableViewCell appearance] setReadMessageTextColor:[UIColor redColor]];

ICMessageTableViewCellFactory

This factory has the responsibility to create all the table view cells that will be displayed in the inbox.

SyntaxDescription
(NSString )reuseIdentifierForMessageData:(id) messageData from MessageParts:(NSArray ) messageParts :(NSDictionary *) messagePartViewFactoriesRetrieves an identifier used to reuse an existing cell
(ICMessageTableViewCell )cellForIdentifier:(NSString )identifier fromMessageParts:(NSArray ) messageParts with MessagePartViewFactories:(NSDictionary ) messagePartViewFactoriesCreates a cell that will represent the message parts passed in parameter

ICConversationViewController

Displays messages within a conversation and provides a message composer.

Messages are displayed to the user in chronological order and new messages can be composed and published directly from the view controller. Supports typing indicators, delivery and read receipts, message attachments, and connection indicator.

Message data is lazily loaded from a local ICMessageStore and remotely from the Webex Connect backend services. To achieve the best possible user experience, it is recommended that you configure an appropriate message synchronization policy within the Core SDK in order to pre-fetch data.

Prerequisites

This component loads data from ICMessageStore and therefore requires that a valid instance is set within the Core SDK, please refer to ICMessaging messageStore.

Properties:

threadICThreadSee the ICThread description.
flavorICMessageComposerFlavorSee the ICMessageComposerFlavor description.
delegateidSee the ICConversationViewControllerDelegate description

Methods:

SyntaxDescription
(void) reloadMessagesReload all the messages of the current conversation

Below properties have been added to this class to implement accessibility to the elements of this class.

Properties:

PropertyDescription
@property (nonatomic) NSString *titleAccessibilityText;The conversations screen title's accessibility text
@property (nonatomic) NSString *backButtonAccessibilityText;The Back Button's accessibility text
@property (nonatomic, weak) NSString *audioTitleLabelAccessibilityText;The Audio title Label's accessibility text
@property (nonatomic, weak) NSString *audioRecordStateLabelAccessibilityText;The Audio Record State Label accessibility text
@property (nonatomic, weak) NSString *audioRecordStopStateLabelAccessibilityText;The Record Stop State Label accessibility text
@property (nonatomic, weak) NSString *audioRecordButtonAccessibilityText;The Record Button accessibility text
@property (nonatomic) NSString *audioRecordCancelButtonAccessibilityText;The Audio Record cancelButton's accessibility text
@property (nonatomic) UIColor *audioRecordStateLabelTextColor;The Audio Record State Label text color
@property (nonatomic) UIFont *audioRecordStateLabelFont;The Audio Record State Label font
@property (nonatomic, weak) NSString *locationTitleLabelAccessibilityText;The location title Label's accessibility text
@property (nonatomic, weak) NSString *locationLabelAccessibilityText;The location Label accessibility text
@property (nonatomic, weak) NSString *locationPlaceSearchBarAccessibilityText;The location Label accessibility text
@property (nonatomic, weak) NSString *locationCancelButtonAccessibilityText;The cancel Button's accessibility text
@property (nonatomic, weak) NSString *locationSendButtonAccessibilityText;The send Button's accessibility text

Sample Code:

ICConversationViewController *conversationVC = conversationSplitViewControllerInstance.conversationViewController;
conversationVC.audioRecordStateLabelFont = [UIFont systemFontOfSize:15];   
conversationVC.audioRecordStateLabelTextColor = [UIColor blueColor];

Styling

ICMessageComposerFlavor

This class allows you to customize the composer. You can select the plugins that will be displayed in the composer and the composer style.

Properties:

pluginsNSArrayAn array of plugins that will be displayed in the composer.
styleICMessageComposerStyleSee ICMessageComposerStyle description

Methods:

SyntaxDescription
+ (instancetype)flavorWithStyle:(ICMessageComposerStyle ) style plugins:(NSArray )plugins;Instantiates an ICMessageComposerFlavor with a style and some plugins

ICMessageComposerStyle

Determines the style (color and appearances) of the message composer.

Properties:

composerBackgroundColorUIColorThe composer background color
borderWidthCGFloatThe border width
borderColorUIColorThe border color
cornerRadiusCGFloatThe corner radius
backgroundColorUIColorThe background color
messageTextColorUIColorThe message text color
messageFontUIFontThe message font

ICNewMesssagesToastView

This class is a view component which gets displayed on receiving the new messages when user is in conversation screen and the most recent message is not visible as user scrolled to see the other messages.

Properties:

PropertyDescription
@property (nonatomic, weak) idmessagesToastDelegate;the new messages toast view delegate
@property (nonatomic, readwrite) UIColor*backGroundColorUI_APPEARANCE_SELECTOR;ToastView Background Color
@property (nonatomic, readwrite) UIColor *toastViewTitleColor UI_APPEARANCE_SELECTOR;ToastView Title Text Color
@property (nonatomic, readwrite) UIFont *toastViewTitleFont
UI_APPEARANCE_SELECTOR;
ToastView Title Text Font
@property (nonatomic, readwrite) UIColor *toastViewTitleShadowColor
UI_APPEARANCE_SELECTOR;
ToastView Title Text Shadow Color
@property (nonatomic, readwrite) UIColor *toastViewTitleBackGroundColor UI_APPEARANCE_SELECTOR; ToastView Title Background Color
@property (nonatomic, readwrite) UIImage *toastViewIndicatorImage
UI_APPEARANCE_SELECTOR;
ToastView indicator Image View's Image
@property (nonatomic, readwrite) UIColor*toastViewIndicatorImageViewBackGroundColor
UI_APPEARANCE_SELECTOR;
ToastView indicator Image View's Background Color
@property (nonatomic) NSString *toastViewAccessibilityText
UI_APPEARANCE_SELECTOR;
The Toast View's accessibility tex

Sample Code:

[ICNewMesssagesToastView appearance].backGroundColor = [UIColor blueColor];

[ICNewMesssagesToastView appearance].toastViewTitleColor = [UIColor whiteColor];

[ICNewMesssagesToastView appearance].toastViewTitleFont = [UIFont systemFontOfSize:15.0f];

ICConversationCollectionView

This component will display the incoming and outgoing messages in some bubbles.

Properties:

conversationDataSourceidSee ICConversationCollectionViewDataSource description
conversationDelegateidSee ICConversationCollectionViewDelegate description
cellFactoryICMessageCollectionViewCellFactorySee ICMessageCollectionViewCellFactory description
isScrollingTopBOOLInforms if the user is currently scrolling to top
backgroundColorUIColorThe background color of the conversation collection view

Methods:

SyntaxDescription
(void) reloadMessagesReloads the conversation display.
(void) addMessagePartViewFactory:(id)messagePartViewFactory forContentType:(NSString )contentTypeAdds a messagePartViewFactory instance in the list of all messagePartViewFactories to create the MessagePartView.
The content type is used to retrieve the good factory based on the content type of the encountered message part.
(void) scrollToBottomAnimated:(BOOL)animatedScrolls the conversation collection view to the bottom
(void) scrollToMessage:(id)messageData animated:(BOOL)animatedScrolls to a message in the conversation

ICConversationCollectionViewDataSource

Contains the methods needed to populate the ICConversationCollectionView with some data

Methods:

SyntaxDescription
(NSInteger) conversationCollectionView:(ICConversationCollectionView) conversationCollectionView numberOfMessagesForMessageGroup:(NSString *) messageGroupTells the data source to return the number of messages that will be displayed in the conversation collection view
(id)conversationCollectionView:(ICConversationCollectionView) conversationCollectionView messageDataForItemAtIndex:(NSInteger)index forMessageGroup:(NSString )messageGroupAsks the data source the message data that will be represented by the cell
(NSArray )conversationCollectionView:(ICConversationCollectionView) conversationCollectionView messagePartsFromMessageData:(id)messageDataAsks the data source the message part that will be displayed for a message data
(NSInteger)numberOfMessageGroupsInConversationCollectionView:(ICConversationCollectionView) conversationCollectionViewTells the data source to return the number of groups that will be displayed in the conversation collection view
(NSString)conversationCollectionView:(ICConversationCollectionView) conversationCollectionView messageGroupAtIndex:(NSInteger) indexAsks the data source the message group that will be displayed at an index
(BOOL)conversationCollectionView:(ICConversationCollectionView)conversationCollectionView shouldDisplayStatusForMessageData:(id) messageDataAsks the data source to return the bool value of messages that will be displayed in the conversation collection view

ICConversationCollectionViewDelegate

It contains the methods needed to handle an event on the ICConversationCollectionView.

Methods:

SyntaxDescription
- (CGFloat)conversationCollectionView:(ICConversationCollectionView) conversationCollectionView heightForMessageCellAtIndexPath:(NSIndexPath *) indexPathAsks the delegate for the height to use for a message cell in a specified location.
- (CGFloat)conversationCollectionView:(ICConversationCollectionView) conversationCollectionView heightForMessageGroupAtIndex:(NSInteger)indexAsks the delegate for the height to use for a message group in a specified location.
- (void)conversationCollectionView:(ICConversationCollectionView) conversationCollectionView didSelectAttachmentMessagePart:(ICMediaMessagePart *) mediaMessagePartTells the delegate that an attachment has been selected
- (void)conversationCollectionView:(ICConversationCollectionView) conversationCollectionView didRemoveMessagePart:(id) messagePartTells the delegate that a message part has been deleted
- (void)conversationCollectionView:(ICConversationCollectionView) conversationCollectionView didSelectRetryForMessageData:(id) messageDataTells the delegate that the user is trying to re-send a message

ICAlertMessageCollectionViewCell

Displays an alert event in the ICConversationCollectionView. This alert could be a conversation that is now closed or reopened for example.

Styling:
This class allows you to customise the alert message collection view cell inside a conversation.

Properties:

containerBackgroundColorUIColorThe container background color.
containerCornerRadiusCGFloatThe corner radius of the bubble.
containerTextColorUIColorThe text color of the container.
containerFontUIFontThe font of the container.

Sample Code

[[ICAlertMessageCollectionViewCell appearance] setContainerBackgroundColor:[UIColor blackColor]];
[[ICAlertMessageCollectionViewCell appearance] setContainerCornerRadius:10.0f];    
[[ICAlertMessageCollectionViewCell appearance] setContainerTextColor:[UIColor lightGrayColor]];
[[ICAlertMessageCollectionViewCell appearance] setContainerFont:[UIFont systemFontOfSize:12.0f weight:UIFontWeightRegular]];

ICIncomingMessageCollectionViewCell

Displays the incoming messages in the ICConversationCollectionView. It has the appearance of a bubble.

Styling:

This class allows you to customise the incoming messages inside a conversation.

Properties:

containerBackgroundColorUIColorThe container background color.
containerCornerRadiusCGFloatThe corner radius of the bubble.
containerTextColorUIColorThe text color of the container.
containerFontUIFontThe font of the container.
timeFontUIFontThe font of time label

Sample Code

[[ICIncomingMessageCollectionViewCell appearance] setContainerBackgroundColor:[UIColor redColor]];
[[ICIncomingMessageCollectionViewCell appearance] setContainerCornerRadius:10.0f];
[[ICIncomingMessageCollectionViewCell appearance] setContainerTextColor:[UIColor redColor]];
[[ICIncomingMessageCollectionViewCell appearance] setContainerFont:[UIFont systemFontOfSize:15.0f weight:bold]];
[[ICIncomingMessageCollectionViewCell appearance] setTimeFont:[UIFont systemFontOfSize:12.0f weight:bold]];

Methods:

SyntaxDescription
(void) showFooterShows the footer of the cell.
(void) hideFooterHides the footer of the cell.

ICOutgoingMessageCollectionViewCell

Displays the outgoing messages in the ICConversationCollectionView. It has the appearance of a bubble.

Styling:

This class allows you to customise the outgoing messages inside a conversation.

Properties:

containerBackgroundColorUIColorThe container background color.
containerCornerRadiusCGFloatThe corner radius of the bubble.
containerTextColorUIColorThe text color of the container.
containerFontUIFontThe font of the container.
messageStateFontUIFontThe message state font.
timeFontUIFontThe font of the time.

Sample Code

[[ICOutgoingMessageCollectionViewCell appearance] setContainerBackgroundColor:[UIColor redColor]];
[[ICOutgoingMessageCollectionViewCell appearance] setContainerCornerRadius:10.0f];   
[[ICOutgoingMessageCollectionViewCell appearance] setContainerTextColor:[UIColor redColor]];
[[ICOutgoingMessageCollectionViewCell appearance] setContainerFont:[UIFont systemFontOfSize:15.0f weight:bold]];
[[ICOutgoingMessageCollectionViewCell appearance] setMessageStateFont:[UIFont systemFontOfSize:12.0f weight:bold]];
[[ICOutgoingMessageCollectionViewCell appearance] setTimeFont:[UIFont systemFontOfSize:12.0f weight:bold]];

Methods:

SyntaxDescription
(void) showFooterShows the footer of the cell.
(void) hideFooterHides the footer of the cell.
(void)showStatus:(BOOL)statusShows the message status label of the cell

ICConversationHeaderCollectionReusableView

Displays the group where the messages belong. Those groups represents by default the day when the messages have been received.

Styling:
This class allows you to customise the header view of the collection view inside a conversation.

Properties:

messageGroupFontUIFontThe message group font.
messageGroupTextColorUIColorThe message group text color.

Sample Code

[[ICConversationHeaderCollectionReusableView appearance] setMessageGroupFont:[UIFont systemFontOfSize:12.0f weight:UIFontWeightRegular]];
[[ICConversationHeaderCollectionReusableView appearance] setMessageGroupTextColor:[UIColor lightGrayColor]];

Methods:

SyntaxDescription
(void)setMessageGroup:(NSString *)messageGroup;Sets the name of the message group.

ICMessageCollectionViewCellFactory

This factory has the responsibility to create all the collection view cells that will be displayed in the conversation.

Methods:

SyntaxDescription
(NSString )reuseIdentifierForMessageData:(id) messageDatafromMessageParts:(NSArray)messagePartswithMessagePartViewFactories:(NSDictionary *) messagePartViewFactoriesRetrieves an identifier used to reuse an existing cell.
(UINib )nibForIdentifier:(NSString ) identifier
fromMessageParts:(NSArray ) messageParts
withMessagePartViewFactories:(NSDictionary
) messagePartViewFactories
Retrieves the nib associated to the current identifier in order to be registered to be used in the conversation cell.
(Class)classForIdentifier:(NSString )identifier
fromMessageParts:(NSArray
) messageParts
withMessagePartViewFactories:(NSDictionary *) messagePartViewFactories
Retrieves the class associated with the current identifier in order to be registered to be used in the conversation cell.

ICConversationSplitViewController

This view controller leverages the functionality of the lower-level components and provides the necessary wiring to combine them into a fully-featured in-app chat experience with minimal code.

The activity supports the display of the user conversation list and provides a means to open them or create new conversations. Selecting a conversation displays the conversation view and allows users to read, compose and send messages.

Prequisites

This component requires that a valid ICMessageStore instance is set within the Core SDK.

Adaptive Layout

The layout of the view controller adapts to the device display, typically when running on a iPhone the activity will display the conversation list full screen, when a conversation is displayed this replaces the conversation list display. Navigating back from the conversation will cause the conversation list to be re-displayed.

When running on an iPad, the layout is split into two sections. The conversation list is shown on the left and the active conversation is shown on the right.

Properties:

categoriesNSMutableArrayThe categories that should be displayed to the user when he will create a new conversation
customerDetailsICCustomerDetailsSee ICCustomerDetails
avatarUIImageThe avatar that will be displayed next to every conversation
hideBackButtonBOOLHides back button, if value is true.
conversationViewControllerICConversationViewControllerSee the ICConversationViewController
conversationsViewControllerICConversationsViewControllerSee the ICConversationsViewController

ICConversationCategoryViewController

The ICConversationCategoryViewController displays a list of conversation categories.

Categories are represented by ICConversationCategory instances, these instances may be nested to create a hierarchy of categories. The view controller displays one level of categories at a time when the user taps a category the fragment with either:

(a) Where the category has sub-categories, displays the list of sub-categories
(b) Where the category does not have sub-categories, raise an event via the

Properties:

categoriesNSMutableArrayThe categories that isdisplayed to the user while creating a new conversation
delegateidThe ICConversationCateogryViewController delegate

Below properties have been added to this class to implement accessibility to the elements of this class.

Properties:

PropertyDescription
@property (nonatomic) NSString *titleAccessibilityText;The conversation category screen title's accessibility text

Interaction

The view controller displays a single level of categories at a time, if a category is selected which has sub-categories then the sub-category list replaces that which is currently shown. Pressing the back button will navigate up one level in the hierarchy.

When a final selection is made the selection is raised as an event through the ICConversationCategoryViewControllerDelegate. A final selection is determined as a category that has no sub-categories.

ICConversationCategoryViewControllerDelegate

Methods:

SyntaxDescription
(void)conversationCategoryViewController:
(ICConversationCategoryViewController )conversationCategoryViewController didSelectConversationCategory:(ICConversationCategory )conversationCategory parentCategory:(ICConversationCategory *)parentCategory
Invoked when a final category selection is made.

ICConversationCategoryTableViewCell

Below properties have been added to this class to implement accessibility to the elements of this class.

Properties:

PropertyDescription
@property (nonatomic) NSString *titleAccessibilityText;The title's accessibility text
@property (nonatomic) NSString *categoryImageAccessibilityText UI_APPEARANCE_SELECTOR;The category Image's accessibility text
@property (nonatomic) UIFont *titleFont UI_APPEARANCE_SELECTOR;The read message font
@property (nonatomic) UIColor *titleTextColor UI_APPEARANCE_SELECTOR;The read message text color

ICConversationCategory

Organizations typically have multiple contact points to which a customer may be directed depending on their query. Conversation categories provide the means to drive users to the correct contact point.

The information contained in a ICConversationCategory instance is also used to establish the correct communication stream for a conversation. Within Webex Connect, real-time messages are sent over a stream, the stream is used to direct messages to the correct service to process the message.

Properties:

titleNSStringThe title of the category.
streamNameNSStringThe stream name of the category.
imageUIImageThe image of the category.
subCategoriesNSMutableArraythe sub categories.

Methods:

SyntaxDescription
(instancetype)initWithTitle:(NSString )title streamName:(NSString )streamNameInstantiates an ICConversationCategory instance with a title and a streamName
(instancetype)initWithTitle:(NSString )title streamName:(NSString )streamName image:(UIImage *)imageInstantiates an ICConversationCategory instance with a title, a streamName and an image
(instancetype)initWithTitle:(NSString )title streamName:(NSString )streamName image:(UIImage )image subCategories:(NSMutableArray )subCategoriesInstantiates an ICConversationCategory instance with a title, a streamName, an image and subcategories

ICCustomerDetails

Certain integrations, such as IMIchat, allow customer details to be sent to the agent serving customer requests. This class encapsulates that information.

Properties:

firstNameNSStringThe customer's first name
lastNameNSStringThe customer's last name
emailNSStringThe customer's email
phoneNumberNSStringThe customer's phone number

Methods:

SyntaxDescription
(instancetype)initWithDictionary:(NSDictionary *)dictionaryInstantiates an ICCustomerDetails with a dictionary
(NSDictionary *)dictionaryRetrieves a dictionary from the customer details object

ICConnectionStatusView

The view is displayed to show the current connection status with the message broker.
3 statuses can be displayed: “Connected.”, “Connecting…” and “Disconnected.”

Styling:
This class allows you to customise the connection status view in conversations screen.

Properties:

disconnectedBackgroundColorUIColorThe disconnected background color
disconnectedTextColorUIColorThe disconnected text color
connectingBackgroundColorUIColorThe connecting background color
connectingTextColorUIColorThe connecting text color
connectedBackgroundColorUIColorThe connected background color
connectedTextColorUIColorThe connected text color
connectionStatusICConnectionStatusThe current connection status

Sample Code

[[ICConnectionStatusView appearance] setDisconnectedBackgroundColor:[UIColor redColor]];
[[ICConnectionStatusView appearance] setDisconnectedTextColor:[UIColor blackColor]];    
[[ICConnectionStatusView appearance] setConnectingBackgroundColor:[UIColor orangeColor]];
[[ICConnectionStatusView appearance] setConnectingTextColor:[UIColor blackColor]];    
[[ICConnectionStatusView appearance] setConnectedBackgroundColor:[UIColor greenColor]];
[[ICConnectionStatusView appearance] setConnectedTextColor:[UIColor whiteColor]];

Below properties have been added to this class to implement accessibility to the elements of this class.

Properties:

PropertyDescription
@property (nonatomic) NSString *connectionStatusLabelAccessibilityText UI_APPEARANCE_SELECTOR;The connectionStatusLabel's accessibility text

Sample Code:

[[ICConnectionStatusView appearance] setConnectionStatusLabelAccessibilityText:@"Connection Status"];

ICConversationButton

This button allows the user to open a new conversation screen. Some features will be added to that component in the future.

Styling:

This class allows you to customise the conversation button.

Properties:

buttonBackgroundColorUIColorThe conversation’s button background color
buttonTintColorUIColorThe conversation’s tint background color
buttonTextColorUIColorThe conversation’s text background color
buttonCornerRadiusCGFloatThe conversation’s corner radius
shouldShowBadgeBOOLDetermines if the badge should be shown
badgeTextColorUIColorThe conversation badge's text color
badgeBackgroundColorUIColorThe conversation badge's background color
badgeCornerRadiusCGFloatThe conversation badge's corner radius
delegateidSee ICConversationButtonDelegate Description

Sample Code

[[ICConversationButton appearance] setButtonBackgroundColor:[UIColor redColor]];
[[ICConversationButton appearance] setButtonTintColor:[UIColor blueColor]];    
[[ICConversationButton appearance] setButtonTextColor:[UIColor blueColor]];    
[[ICConversationButton appearance] setButtonCornerRadius:10.0f];

Accessibility Changes

Below properties have been added to this class to implement accessibility to the elements of this class.

PropertyDescription
@property (nonatomic) NSString *accessibilityText UI_APPEARANCE_SELECTOR;The conversation button's accessibility text

Sample Code:

[[ICConversationButton appearance] setAccessibilityText:@"New Conversation"];

ICConversationButtonDelegate

Methods:

(void)conversationButtonShouldStartConversation:(ICConversationButton *)conversationButtonInforms that a new conversation should be started
(void)conversationButton:(ICConversationButton ) conversationButton shouldOpenConversationWithThread:(ICThread ) threadInforms that a conversation should be opened with a thread
(void)conversationButtonShouldOpenConversations:(ICConversationButton *)conversationButtonInforms that the conversation list should be opened

Protocols

ICNewMesssagesToastViewDelegate

@protocol ICNewMesssagesToastViewDelegate

This protocol handles the new messages toast view selection made by the user. Below is the method that is been declared in this protocol.

didTapNewMessagesToast;

This method will be used to handle the new messages toast view selection made by the user.

Syntax: - (void)didTapNewMessagesToast;

Sample Code:

if (self.messagesToastDelegate != nil

&& [self.messagesToastDelegate respondsToSelector:@selector(didTapNewMessagesToast)]) {

[self.messagesToastDelegate didTapNewMessagesToast];

}