Files
mier_ios/SweetParty/主类/RCMic/Room/InputBar/RCMicInputBar.h

103 lines
2.4 KiB
C
Raw Normal View History

2025-08-11 10:43:19 +08:00
//
// RCMicInputBar.h
// RongEnterpriseApp
//
// Created by 杜立召 on 16/8/3.
// Copyright © 2016年 rongcloud. All rights reserved.
//
#import "RCMicEmojiBoardView.h"
#import <CoreLocation/CoreLocation.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/*!
*/
typedef NS_ENUM(NSInteger, RCEBottomBarStatus) {
/*!
*/
RCEBottomBarDefaultStatus = 0,
/*!
*/
RCEBottomBarKeyboardStatus,
/*!
*/
RCEBottomBarEmojiStatus
};
@protocol RCMicInputBarControlDelegate;
@interface RCMicInputBar : UIView
@property(nonatomic, weak) id<RCMicInputBarControlDelegate> delegate;
/*!
View
*/
@property(nonatomic, strong) RCMicEmojiBoardView *emojiBoardView;
- (void)setText:(NSString *)text;
- (id)initWithFrame:(CGRect)frame;
- (void)setInputBarStatus:(RCEBottomBarStatus)Status;
- (void)setPlaceholder:(NSString *)placeholder;
- (void)changeInputBarFrame:(CGRect)frame;
- (void)clearInputView;
- (BOOL)resignFirstResponderIfNeed;
- (void)becomeFirstResponderIfNeed;
@end
/*!
*/
@protocol RCMicInputBarControlDelegate <NSObject>
@optional
#pragma mark - 输入框及外部区域事件
/**
@param frame Frame
@param duration
@param curve
*/
- (void)onInputBarControlContentSizeChanged:(CGRect)frame
withAnimationDuration:(CGFloat)duration
andAnimationCurve:(UIViewAnimationCurve)curve;
/*!
@param inputTextView
@param range
@param text
*/
- (void)onInputTextView:(UITextView *)inputTextView
shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text;
/**
@param inputTextView
*/
- (void)onInputTextViewDidChange: (UITextView *)inputTextView;
#pragma mark - 输入框事件
/**
* emoji表情面板的发送按钮执行的方法
* @param inputBar
* @param text
*/
- (void)inputBar:(RCMicInputBar *)inputBar
didTouchsendButton:(NSString *)text;
@end