64 lines
2.6 KiB
Objective-C
64 lines
2.6 KiB
Objective-C
|
|
// Created by Tencent on 2023/06/09.
|
|
// Copyright © 2023 Tencent. All rights reserved.
|
|
/**
|
|
*
|
|
*
|
|
* Tencent Cloud Communication Service Interface Component TUIKIT - Conversation List Component.
|
|
*
|
|
* This file declares the view component of the conversation list.
|
|
* The conversation list component can display brief information of each conversation in the order of the time when new messages are sent (newer messages are
|
|
* sorted earlier). The conversation information displayed in the conversation list includes:
|
|
* 1. Avatar information (user avatar/group avatar)
|
|
* 2. Conversation title (user nickname/group name)
|
|
* 3. Conversation message overview (display the latest message content)
|
|
* 4. The number of unread messages (if there are unread messages)
|
|
* 5. Conversation time (receive/send time of the latest message)
|
|
* The conversation information displayed in the conversation list is implemented by TUIConversationCell. For details, please refer to
|
|
* TUIConversation\Cell\CellUI\TUIConversationCell.h
|
|
*/
|
|
|
|
#import <TIMCommon/TIMDefine.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import "TUIConversationCellData.h"
|
|
#import "TUIConversationListControllerListener.h"
|
|
#import "TUIConversationTableView.h"
|
|
|
|
@class TUISearchBar;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
*
|
|
* 【Module name】 message list interface component (TUIConversationListController)
|
|
*
|
|
* 【Function description】 It is responsible for displaying each conversation in the order in which the messages are received, and responding to the user's
|
|
* operation, providing users with multi-session management functions. The conversation information displayed in the conversation list includes:
|
|
* 1. Avatar information (user avatar/group avatar)
|
|
* 2. Conversation title (user nickname/group name)
|
|
* 3. Conversation message overview (display the latest message content)
|
|
* 4. The number of unread messages (if there are unread messages)
|
|
* 5. Conversation time (receive/send time of the latest message)
|
|
*/
|
|
@interface TUIConversationListController : UIViewController
|
|
@property(nonatomic, strong) TUIConversationTableView *tableViewForAll;
|
|
|
|
@property(nonatomic, weak) id<TUIConversationListControllerListener> delegate;
|
|
|
|
@property(nonatomic, strong) TUIConversationListBaseDataProvider *dataProvider;
|
|
|
|
@property(nonatomic) BOOL isShowBanner;
|
|
|
|
/**
|
|
* An identifier that identifies whether to display the conversation group, If the TUIConversationGroup component is integrated, it will be displayed by
|
|
* default
|
|
*/
|
|
@property(nonatomic) BOOL isShowConversationGroup;
|
|
|
|
- (void)startConversation:(V2TIMConversationType)type;
|
|
|
|
-(void)reloadConversationList;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|