MXChatViewController Class Reference

Inherits from UIViewController
Declared in MXChatViewController.h

Overview

The MXChatViewController class provides the main chat UI components. You should specify a chat when initializing so that the view controller could know whose content it should present.

  chat

The chat whose content the view controller should present

@property (nonatomic, strong) MXChat *chat

Declared In

MXChatViewController.h

– initWithChat:

Initialize a chat view controller with a specified chat.

- (instancetype)initWithChat:(MXChat *)chat

Parameters

chat

The related chat

Return Value

Return a newly initialized chat view controller

Declared In

MXChatViewController.h

– switchToTab:animated:

Switch to a specified tab. This method will do nothing if multi-tab not supported.

- (void)switchToTab:(MXChatViewControllerTab)tab animated:(BOOL)animated

Parameters

tab

The tab that this chat view is going to show.

animated

Set YES to animate the switch progress, otherwise set NO.

Declared In

MXChatViewController.h

– scrollToFeed:

Scroll this chat view to the position that the specified feed is placed at the bottom.

- (void)scrollToFeed:(id)feed

Parameters

feed

The feed will show at the bottom.

Declared In

MXChatViewController.h