mirror of
https://github.com/TencentCloud/TIMSDK.git
synced 2026-10-21 08:46:21 +08:00
67 lines
2.5 KiB
Objective-C
67 lines
2.5 KiB
Objective-C
/******************************************************************************
|
|
*
|
|
* 本文件声明了用于实现“更多”单元的模块。
|
|
* 更多单元,即在点击聊天界面右下角“+”后出现的若干单元。
|
|
* 目前更多单元提供拍摄、视频、图片、文件四种多媒体发送功能,您也可以继续根据您的需求进行自定义拓展。
|
|
* TUIInputMoreCell 更多单元负责在更多视图中显示,向用户展示更多视图中包含的功能。同时作为各个功能的入口,相应用户的交互事件。
|
|
*
|
|
******************************************************************************/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "TUIInputMoreCellData.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// TUIInputMoreCell
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/** 腾讯云 TUIKit
|
|
* 【模块名称】TUIInputMoreCell
|
|
* 【功能说明】更多单元,即在更多视图中显示的单元。
|
|
* 更多单元负责在更多视图中显示,向用户展示更多视图中包含的功能。同时作为各个功能的入口,相应用户的交互事件。
|
|
*/
|
|
@interface TUIInputMoreCell : UICollectionViewCell
|
|
|
|
/**
|
|
* 更多单元对应的图标,从 TUIInputMoreCellData 的 iamge 中获取。
|
|
* 各个单元的图标有所不同,用于形象表示该单元所对应的功能。
|
|
*/
|
|
@property (nonatomic, strong) UIImageView *image;
|
|
|
|
/**
|
|
* 更多单元对应的标签。
|
|
* 其文本内容从 TUIInputMoreCellData 的 title 中获取。
|
|
* 各个单元的名称有所不同(比如拍摄、录像、文件、相册等),用于在图标下方以文字形式展示单元对应的功能。
|
|
*/
|
|
@property (nonatomic, strong) UILabel *title;
|
|
|
|
/**
|
|
* 更多单元对应的数据源
|
|
* 存放更多单元所需的信息与数据。
|
|
*/
|
|
@property (nonatomic, strong) TUIInputMoreCellData *data;
|
|
|
|
/**
|
|
* 是否禁用封装在 TUIKit 内部的默认的选中行为,如群直播默认创建直播间等行为,默认:NO
|
|
*/
|
|
@property (nonatomic, assign) BOOL disableDefaultSelectAction;
|
|
|
|
/**
|
|
* 根据消息源填充“更多”单元。
|
|
* 包括 iamge、title 的赋值与 frame 的设定。
|
|
*
|
|
* @param data 负责存放数据的数据源。
|
|
*/
|
|
- (void)fillWithData:(TUIInputMoreCellData *)data;
|
|
|
|
/**
|
|
* 获取大小
|
|
* 负责获取当前“更多”单元在 UI 上的显示面积。
|
|
*/
|
|
+ (CGSize)getSize;
|
|
@end
|
|
|
|
|
|
|