EMChatBar.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // EMChatBar.h
  3. // ChatDemo-UI3.0
  4. //
  5. // Created by XieYajie on 2019/1/25.
  6. // Copyright © 2019 XieYajie. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "EMTextView.h"
  10. #import "EMChatBarEmoticonView.h"
  11. #import "EMChatBarRecordAudioView.h"
  12. #import "EMMoreFunctionView.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. @protocol EMChatBarDelegate;
  15. @interface EMChatBar : UIView
  16. @property (nonatomic, strong) NSMutableArray<UIButton *> *buttonArray;
  17. @property (nonatomic, weak) id<EMChatBarDelegate> delegate;
  18. @property (nonatomic, strong) EMTextView *textView;
  19. @property (nonatomic, strong) EMChatBarRecordAudioView *recordAudioView;
  20. @property (nonatomic, strong) EMChatBarEmoticonView *moreEmoticonView;
  21. @property (nonatomic, strong) EMMoreFunctionView *moreFunctionView;
  22. @property (nonatomic, copy) void (^clickMore)(NSInteger index,NSString *title);
  23. - (void)clearInputViewText;
  24. - (void)inputViewAppendText:(NSString *)aText;
  25. - (void)clearMoreViewAndSelectedButton;
  26. @end
  27. @protocol EMChatBarDelegate <NSObject>
  28. @optional
  29. - (BOOL)inputView:(EMTextView *)aInputView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
  30. - (void)inputViewDidChange:(EMTextView *)aInputView;
  31. //- (void)chatBarDidCameraAction;
  32. //
  33. //- (void)chatBarDidPhotoAction;
  34. //
  35. //- (void)chatBarDidLocationAction;
  36. //
  37. //- (void)chatBarDidCallAction;
  38. //
  39. - (void)chatBarDidShowMoreViewAction:(BOOL)isInput;
  40. - (void)chatBarClickMoreType:(SmartBarType)type;
  41. //- (void)chatBarHeightDidChanged;
  42. @end
  43. NS_ASSUME_NONNULL_END