1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // PBChatBar.h
- // PBSDK
- //
- // Created by LStar on 2025/1/22.
- //
- #import <UIKit/UIKit.h>
- #import <YYText/YYText.h>
- #import "PBChatBarEmoticonView.h"
- NS_ASSUME_NONNULL_BEGIN
- @protocol PBChatBarDelegate;
- @interface PBChatBar : UIView
- @property (nonatomic, weak) id<PBChatBarDelegate> delegate;
- @property (nonatomic, strong) YYTextView *textView;
- @property (nonatomic, strong) PBChatBarEmoticonView *moreEmoticonView;
- - (void)clearInputViewText;
- - (void)inputViewAppendText:(NSString *)aText;
- - (BOOL)deleteTailText;
- - (void)clearMoreViewAndSelectedButton;
- @end
- @protocol PBChatBarDelegate <NSObject>
- @optional
- - (BOOL)textView:(YYTextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
- - (void)textViewDidChangeSelection:(YYTextView *)textView;
- - (void)inputViewDidChange:(YYTextView *)aInputView;
- - (void)chatBarDidShowMoreViewAction;
- - (void)chatBarSendMsgAction:(NSString *)text;
- @end
- NS_ASSUME_NONNULL_END
|