123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // EMChatBar.h
- // ChatDemo-UI3.0
- //
- // Updated by zhangchong on 2020/06/05.
- // Copyright © 2019 XieYajie. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "EaseTextView.h"
- #import "EaseChatBarEmoticonView.h"
- NS_ASSUME_NONNULL_BEGIN
- @protocol EMChatBarDelegate;
- @interface EMChatBar : UIView
- @property (nonatomic, weak) id<EMChatBarDelegate> delegate;
- @property (nonatomic, strong) EaseTextView *textView;
- @property (nonatomic, strong) EaseChatBarEmoticonView *moreEmoticonView;
- - (void)clearInputViewText;
- - (void)inputViewAppendText:(NSString *)aText;
- - (BOOL)deleteTailText;
- - (void)clearMoreViewAndSelectedButton;
- @end
- @protocol EMChatBarDelegate <NSObject>
- @optional
- - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text;
- - (void)textViewDidChangeSelection:(UITextView *)textView;
- - (void)inputViewDidChange:(EaseTextView *)aInputView;
- - (void)chatBarDidShowMoreViewAction;
- - (void)chatBarSendMsgAction:(NSString *)text;
- @end
- NS_ASSUME_NONNULL_END
|