76 lines
1.7 KiB
Objective-C
76 lines
1.7 KiB
Objective-C
|
|
// Created by Tencent on 2023/06/09.
|
|
// Copyright © 2023 Tencent. All rights reserved.
|
|
#import <TIMCommon/TUIBubbleMessageCell.h>
|
|
#import <TIMCommon/TUITextView.h>
|
|
#import "TUIChatDefine.h"
|
|
#import "TUITextMessageCellData.h"
|
|
|
|
@class TUITextView;
|
|
|
|
typedef void (^TUIChatSelectAllContentCallback)(BOOL);
|
|
|
|
@interface TUITextMessageCell : TUIBubbleMessageCell <UITextViewDelegate>
|
|
|
|
/**
|
|
*
|
|
* TextView for display text message content
|
|
*/
|
|
@property(nonatomic, strong) TUITextView *textView;
|
|
|
|
/**
|
|
*
|
|
* Selected text content
|
|
*/
|
|
@property(nonatomic, strong) NSString *selectContent;
|
|
|
|
/**
|
|
*
|
|
* Callback for selected all text
|
|
*/
|
|
@property(nonatomic, strong) TUIChatSelectAllContentCallback selectAllContentContent;
|
|
|
|
/// Data for text message cell.
|
|
@property(nonatomic, strong) TUITextMessageCellData *textData;
|
|
|
|
@property(nonatomic, strong) UIImageView *voiceReadPoint;
|
|
|
|
- (void)fillWithData:(TUITextMessageCellData *)data;
|
|
|
|
@end
|
|
|
|
|
|
@interface TUITextMessageCell (TUILayoutConfiguration)
|
|
|
|
/**
|
|
*
|
|
* The color of label which displays the text message content.
|
|
* Used when the message direction is send.
|
|
*/
|
|
@property(nonatomic, class) UIColor *outgoingTextColor;
|
|
|
|
/**
|
|
*
|
|
* The font of label which displays the text message content.
|
|
* Used when the message direction is send.
|
|
*/
|
|
@property(nonatomic, class) UIFont *outgoingTextFont;
|
|
|
|
/**
|
|
*
|
|
* The color of label which displays the text message content.
|
|
* Used when the message direction is received.
|
|
*/
|
|
@property(nonatomic, class) UIColor *incommingTextColor;
|
|
|
|
/**
|
|
*
|
|
* The font of label which displays the text message content.
|
|
* Used when the message direction is received.
|
|
*/
|
|
@property(nonatomic, class) UIFont *incommingTextFont;
|
|
|
|
+ (void)setMaxTextSize:(CGSize)maxTextSz;
|
|
|
|
@end
|