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
startDate
Start date of the chat’s display content. Configure this if you want to hide some content before the ‘startDate’.
@property (nonatomic, assign) NSDate *startDate
Declared In
MXChatViewController.h
extraTabs
Extra tabs of the MXChatViewController
@property (nonatomic, strong, nullable) NSArray<MXChatTab*> *extraTabs
Declared In
MXChatViewController.h
delegate
The object acts as the delegate of this chatViewController.
@property (nonatomic, readwrite, weak) id<MXChatViewControllerDelegate> delegate
Declared In
MXChatViewController.h
– switchToTab:animated:
Switch to a specified tab with tab index. This method will do nothing if multi-tab not supported.
- (void)switchToTab:(NSUInteger)tabIndex animated:(BOOL)animated
Parameters
tabIndex |
The tab at this index 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 (Sequence id from REST API is also acceptable). |
---|
Declared In
MXChatViewController.h
– openPage:
Open a page with the page id.
- (void)openPage:(NSString *)pageId
Parameters
pageId |
The page’s sequence id from REST API. |
---|
Declared In
MXChatViewController.h
– openTodo:
Open a todo with the todo id.
- (void)openTodo:(NSString *)todoId
Parameters
todoId |
The todo’s sequence id from REST API. |
---|
Declared In
MXChatViewController.h