| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- // 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
|