12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //
- // YOUPAIBBNIMInputToolBar.h
- // VQU
- //
- // Created by Elaine on 2021/10/26.
- // Copyright © 2021 MS. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger,BBNIMInputStatus)
- {
- BBNIMInputStatusText,
- BBNIMInputStatusAudio,
- BBNIMInputStatusEmoticon,
- BBNIMInputStatusMore
- };
- @protocol BBNIMInputToolBarDelegate <NSObject>
- @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<BBNIMInputToolBarDelegate> 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
|