PBChatBar.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // PBChatBar.h
  3. // PBSDK
  4. //
  5. // Created by LStar on 2025/1/22.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <YYText/YYText.h>
  9. #import "PBChatBarEmoticonView.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @protocol PBChatBarDelegate;
  12. @interface PBChatBar : UIView
  13. @property (nonatomic, weak) id<PBChatBarDelegate> delegate;
  14. @property (nonatomic, strong) YYTextView *textView;
  15. @property (nonatomic, strong) PBChatBarEmoticonView *moreEmoticonView;
  16. - (void)addTool:(NSInteger)type;
  17. - (void)clearInputViewText;
  18. - (void)inputViewAppendText:(NSString *)aText;
  19. - (BOOL)deleteTailText;
  20. - (void)clearMoreViewAndSelectedButton;
  21. @end
  22. @protocol PBChatBarDelegate <NSObject>
  23. @optional
  24. - (BOOL)textView:(YYTextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
  25. - (void)textViewDidChangeSelection:(YYTextView *)textView;
  26. - (void)inputViewDidChange:(YYTextView *)aInputView;
  27. - (void)chatBarDidShowMoreViewAction;
  28. - (void)chatBarSendMsgAction:(NSString *)text;
  29. - (void)didSelectGift;
  30. - (void)didSelectChangeLive;
  31. - (void)bottomView:(BOOL)show;
  32. @end
  33. NS_ASSUME_NONNULL_END