PBChatBar.h 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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)clearInputViewText;
  17. - (void)inputViewAppendText:(NSString *)aText;
  18. - (BOOL)deleteTailText;
  19. - (void)clearMoreViewAndSelectedButton;
  20. @end
  21. @protocol PBChatBarDelegate <NSObject>
  22. @optional
  23. - (BOOL)textView:(YYTextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
  24. - (void)textViewDidChangeSelection:(YYTextView *)textView;
  25. - (void)inputViewDidChange:(YYTextView *)aInputView;
  26. - (void)chatBarDidShowMoreViewAction;
  27. - (void)chatBarSendMsgAction:(NSString *)text;
  28. @end
  29. NS_ASSUME_NONNULL_END