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

142 lines
2.7 KiB
C
Raw Normal View History

2025-08-11 10:43:19 +08:00
//
// RCMicInputView.h
// RongEnterpriseApp
//
// Created by 杜立召 on 16/8/3.
// Copyright © 2016年 rongcloud. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define Height_ChatSessionInputBar 50.0f
#import "RCMicTextView.h"
/*!
*/
@protocol RCMicInputViewDelegate;
/*!
*/
@interface RCMicInputView : UIView
/*!
*/
@property(weak, nonatomic) id<RCMicInputViewDelegate> delegate;
/*!
View
*/
@property(strong, nonatomic) UIImageView *inputContainerView;
/*!
*/
@property(strong, nonatomic) RCMicTextView *inputTextView;
/*!
*/
@property(strong, nonatomic) UIButton *emojiButton;
/*!
View
*/
@property(weak, nonatomic, readonly) UIView *contextView;
/*!
Frame Y坐标
*/
@property(assign, nonatomic) float originalPositionY;
/*!
*/
@property(assign, nonatomic) float inputTextview_height;
- (id)initWithFrame:(CGRect)frame;
- (void)setPlaceholder:(NSString *)placeholder;
- (void)resetInputBar;
- (void)clearInputText;
/**
textView的高度
@param lines
@return textView对应的高度
*/
- (CGFloat)getTextViewHeightWithLines: (NSInteger)lines;
/**
inputTextView和emojiButton的位置大小
*/
- (void)refreshSubviewFrame;
@end
/*!
*/
@protocol RCMicInputViewDelegate <NSObject>
@optional
/*!
@param keyboardFrame Frame
*/
- (void)keyboardWillShowWithFrame:(CGRect)keyboardFrame;
/*!
*/
- (void)keyboardWillHide;
/*!
@param frame Frame
*/
- (void)chatSessionInputBarControlContentSizeChanged:(CGRect)frame;
/*!
Return按钮的回调
@param inputTextView
@param text
*/
- (void)didTouchKeyboardReturnKey:(UITextView *)inputTextView text:(NSString *)text;
/*!
@param sender
*/
- (void)didTouchEmojiButton:(UIButton *)sender;
/*!
@param inputTextView
@param range
@param text
*/
- (void)inputTextView:(UITextView *)inputTextView
shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text;
/**
@param inputTextView
*/
- (void)inputTextViewDidChange: (UITextView *)inputTextView;
@end