// // YOUPAIBBNIMInputToolBar.h // VQU // // Created by Elaine on 2021/10/26. // Copyright © 2021 MS. All rights reserved. // #import typedef NS_ENUM(NSInteger,BBNIMInputStatus) { BBNIMInputStatusText, BBNIMInputStatusAudio, BBNIMInputStatusEmoticon, BBNIMInputStatusMore }; @protocol BBNIMInputToolBarDelegate @optional - (BOOL)textViewShouldBeginEditing; - (void)textViewDidEndEditing; - (BOOL)shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)replacementText; - (void)textViewDidChange; - (void)toolBarWillChangeHeight:(CGFloat)height; - (void)toolBarDidChangeHeight:(CGFloat)height; @end @interface YOUPAIBBNIMInputToolBar : UIView @property (nonatomic,strong) UIButton *youpaiprecordBtn; @property (nonatomic,strong) UIButton *youpaipcameraBtn; @property (nonatomic,strong) UIButton *youpaipphotoBtn; @property (nonatomic,strong) UIButton *youpaipemoticonBtn; @property (nonatomic,strong) UIButton *youpaipgiftBtn; @property (nonatomic,strong) UIButton *youpaipvideoBtn; @property (nonatomic,strong) UIButton *youpaipvoiceBtn; @property (nonatomic,strong) UIButton *youpaipmoreMediaBtn; @property (nonatomic,strong) UIButton *youpaiprecordButton; @property (nonatomic,strong) UIImageView *youpaipinputTextBkgImage; @property (nonatomic,strong) UIView *youpaipbottomSep; @property (nonatomic,copy) NSString *youpaipcontentText; @property (nonatomic,weak) id delegate; @property (nonatomic,assign) BOOL youpaipshowsKeyboard; @property (nonatomic,assign) NSArray *youpaipinputBarItemTypes; @property (nonatomic,assign) NSInteger youpaipmaxNumberOfInputLines; - (void)youpaifupdate:(BBNIMInputStatus)status; @end @interface YOUPAIBBNIMInputToolBar(InputText) - (NSRange)youpaifselectedRange; - (void)youpaifsetPlaceHolder:(NSString *)placeHolder; - (void)youpaifinsertText:(NSString *)text; - (void)youpaifdeleteText:(NSRange)range; @end