YOUPAIBBNIMInputToolBar.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //
  2. // YOUPAIBBNIMInputToolBar.h
  3. // VQU
  4. //
  5. // Created by Elaine on 2021/10/26.
  6. // Copyright © 2021 MS. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger,BBNIMInputStatus)
  10. {
  11. BBNIMInputStatusText,
  12. BBNIMInputStatusAudio,
  13. BBNIMInputStatusEmoticon,
  14. BBNIMInputStatusMore
  15. };
  16. @protocol BBNIMInputToolBarDelegate <NSObject>
  17. @optional
  18. - (BOOL)textViewShouldBeginEditing;
  19. - (void)textViewDidEndEditing;
  20. - (BOOL)shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)replacementText;
  21. - (void)textViewDidChange;
  22. - (void)toolBarWillChangeHeight:(CGFloat)height;
  23. - (void)toolBarDidChangeHeight:(CGFloat)height;
  24. @end
  25. @interface YOUPAIBBNIMInputToolBar : UIView
  26. @property (nonatomic,strong) UIButton *youpaiprecordBtn;
  27. @property (nonatomic,strong) UIButton *youpaipcameraBtn;
  28. @property (nonatomic,strong) UIButton *youpaipphotoBtn;
  29. @property (nonatomic,strong) UIButton *youpaipemoticonBtn;
  30. @property (nonatomic,strong) UIButton *youpaipgiftBtn;
  31. @property (nonatomic,strong) UIButton *youpaipvideoBtn;
  32. @property (nonatomic,strong) UIButton *youpaipvoiceBtn;
  33. @property (nonatomic,strong) UIButton *youpaipmoreMediaBtn;
  34. @property (nonatomic,strong) UIButton *youpaiprecordButton;
  35. @property (nonatomic,strong) UIImageView *youpaipinputTextBkgImage;
  36. @property (nonatomic,strong) UIView *youpaipbottomSep;
  37. @property (nonatomic,copy) NSString *youpaipcontentText;
  38. @property (nonatomic,weak) id<BBNIMInputToolBarDelegate> delegate;
  39. @property (nonatomic,assign) BOOL youpaipshowsKeyboard;
  40. @property (nonatomic,assign) NSArray *youpaipinputBarItemTypes;
  41. @property (nonatomic,assign) NSInteger youpaipmaxNumberOfInputLines;
  42. - (void)youpaifupdate:(BBNIMInputStatus)status;
  43. @end
  44. @interface YOUPAIBBNIMInputToolBar(InputText)
  45. - (NSRange)youpaifselectedRange;
  46. - (void)youpaifsetPlaceHolder:(NSString *)placeHolder;
  47. - (void)youpaifinsertText:(NSString *)text;
  48. - (void)youpaifdeleteText:(NSRange)range;
  49. @end