1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- //
- // EMChatBar.h
- // ChatDemo-UI3.0
- //
- // Created by XieYajie on 2019/1/25.
- // Copyright © 2019 XieYajie. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "EMTextView.h"
- #import "EMChatBarEmoticonView.h"
- #import "EMChatBarRecordAudioView.h"
- #import "EMMoreFunctionView.h"
- NS_ASSUME_NONNULL_BEGIN
- @protocol EMChatBarDelegate;
- @interface EMChatBar : UIView
- @property (nonatomic, strong) NSMutableArray<UIButton *> *buttonArray;
- @property (nonatomic, weak) id<EMChatBarDelegate> delegate;
- @property (nonatomic, strong) EMTextView *textView;
- @property (nonatomic, strong) EMChatBarRecordAudioView *recordAudioView;
- @property (nonatomic, strong) EMChatBarEmoticonView *moreEmoticonView;
- @property (nonatomic, strong) EMMoreFunctionView *moreFunctionView;
- @property (nonatomic, copy) void (^clickMore)(NSInteger index,NSString *title);
- - (void)clearInputViewText;
- - (void)inputViewAppendText:(NSString *)aText;
- - (void)clearMoreViewAndSelectedButton;
- @end
- @protocol EMChatBarDelegate <NSObject>
- @optional
- - (BOOL)inputView:(EMTextView *)aInputView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
- - (void)inputViewDidChange:(EMTextView *)aInputView;
- //- (void)chatBarDidCameraAction;
- //
- //- (void)chatBarDidPhotoAction;
- //
- //- (void)chatBarDidLocationAction;
- //
- //- (void)chatBarDidCallAction;
- //
- - (void)chatBarDidShowMoreViewAction:(BOOL)isInput;
- - (void)chatBarClickMoreType:(SmartBarType)type;
- //- (void)chatBarHeightDidChanged;
- @end
- NS_ASSUME_NONNULL_END
|