EMChatBar.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // EMChatBar.h
  3. // ChatDemo-UI3.0
  4. //
  5. // Updated by zhangchong on 2020/06/05.
  6. // Copyright © 2019 XieYajie. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "EaseTextView.h"
  10. #import "EaseChatBarEmoticonView.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @protocol EMChatBarDelegate;
  13. @interface EMChatBar : UIView
  14. @property (nonatomic, weak) id<EMChatBarDelegate> delegate;
  15. @property (nonatomic, strong) EaseTextView *textView;
  16. @property (nonatomic, strong) EaseChatBarEmoticonView *moreEmoticonView;
  17. - (void)clearInputViewText;
  18. - (void)inputViewAppendText:(NSString *)aText;
  19. - (BOOL)deleteTailText;
  20. - (void)clearMoreViewAndSelectedButton;
  21. @end
  22. @protocol EMChatBarDelegate <NSObject>
  23. @optional
  24. - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
  25. - (void)textViewDidChangeSelection:(UITextView *)textView;
  26. - (void)inputViewDidChange:(EaseTextView *)aInputView;
  27. - (void)chatBarDidShowMoreViewAction;
  28. - (void)chatBarSendMsgAction:(NSString *)text;
  29. @end
  30. NS_ASSUME_NONNULL_END