RCChatSessionInputBarControl Class Reference

Inherits from UIView
Declared in RCChatSessionInputBarControl.h

Overview

输入工具栏

  conversationType

当前的会话类型

@property (nonatomic, assign) RCConversationType conversationType

Discussion

当前的会话类型

Declared In

RCChatSessionInputBarControl.h

  targetId

当前的会话ID

@property (nonatomic, strong) NSString *targetId

Discussion

当前的会话ID

Declared In

RCChatSessionInputBarControl.h

  delegate

输入工具栏的点击回调监听

@property (weak, nonatomic) id<RCChatSessionInputBarControlDelegate> delegate

Discussion

输入工具栏的点击回调监听

Declared In

RCChatSessionInputBarControl.h

  dataSource

输入工具栏获取用户信息的回调

@property (weak, nonatomic) id<RCChatSessionInputBarControlDataSource> dataSource

Discussion

输入工具栏获取用户信息的回调

Declared In

RCChatSessionInputBarControl.h

  photoEditorDelegate

点击编辑按钮会调用该代理的onClickEditPicture方法

@property (weak, nonatomic) id<RCPictureEditDelegate> photoEditorDelegate

Discussion

点击编辑按钮会调用该代理的onClickEditPicture方法

Declared In

RCChatSessionInputBarControl.h

  containerView

所处的会话页面View

@property (weak, nonatomic, readonly) UIView *containerView

Discussion

所处的会话页面View

Declared In

RCChatSessionInputBarControl.h

  inputContainerView

容器View

@property (strong, nonatomic) RCInputContainerView *inputContainerView

Discussion

容器View

Declared In

RCChatSessionInputBarControl.h

  menuContainerView

公众服务菜单的容器View

@property (strong, nonatomic) RCMenuContainerView *menuContainerView

Discussion

公众服务菜单的容器View

Declared In

RCChatSessionInputBarControl.h

  pubSwitchButton

公众服务菜单切换的按钮

@property (strong, nonatomic) RCButton *pubSwitchButton

Discussion

公众服务菜单切换的按钮

Declared In

RCChatSessionInputBarControl.h

  robotSwitchButton

客服机器人转人工切换的按钮

@property (strong, nonatomic) RCButton *robotSwitchButton

Discussion

客服机器人转人工切换的按钮

Declared In

RCChatSessionInputBarControl.h

  switchButton

语音与文本输入切换的按钮

@property (strong, nonatomic) RCButton *switchButton

Discussion

语音与文本输入切换的按钮

Declared In

RCChatSessionInputBarControl.h

  recordButton

录制语音消息的按钮

@property (strong, nonatomic) RCButton *recordButton

Discussion

录制语音消息的按钮

Declared In

RCChatSessionInputBarControl.h

  inputTextView

文本输入框

@property (strong, nonatomic) RCTextView *inputTextView

Discussion

文本输入框

Declared In

RCChatSessionInputBarControl.h

  emojiButton

表情的按钮

@property (strong, nonatomic) RCButton *emojiButton

Discussion

表情的按钮

Declared In

RCChatSessionInputBarControl.h

  additionalButton

扩展输入的按钮

@property (strong, nonatomic) RCButton *additionalButton

Discussion

扩展输入的按钮

Declared In

RCChatSessionInputBarControl.h

  publicServiceMenu

公众服务账号菜单

@property (strong, nonatomic) RCPublicServiceMenu *publicServiceMenu

Discussion

公众服务账号菜单

Declared In

RCChatSessionInputBarControl.h

  pluginBoardView

输入扩展功能板View

@property (nonatomic, strong) RCPluginBoardView *pluginBoardView

Discussion

输入扩展功能板View

Declared In

RCChatSessionInputBarControl.h

  emojiBoardView

表情View

@property (nonatomic, strong) RCEmojiBoardView *emojiBoardView

Discussion

表情View

Declared In

RCChatSessionInputBarControl.h

  safeAreaView

输入工具栏底部的 SafeArea view;当前设备没有 SafeArea,则该 view 为 nil

@property (nonatomic, strong, readonly) UIView *safeAreaView

Discussion

输入工具栏底部的 SafeArea view;当前设备没有 SafeArea,则该 view 为 nil

Declared In

RCChatSessionInputBarControl.h

– containerViewWillAppear

View即将显示的回调

- (void)containerViewWillAppear

Discussion

View即将显示的回调

Declared In

RCChatSessionInputBarControl.h

– containerViewDidAppear

View已经显示的回调

- (void)containerViewDidAppear

Discussion

View已经显示的回调

Declared In

RCChatSessionInputBarControl.h

– containerViewWillDisappear

View即将隐藏的回调

- (void)containerViewWillDisappear

Discussion

View即将隐藏的回调

Declared In

RCChatSessionInputBarControl.h

  currentBottomBarStatus

当前的输入状态

@property (nonatomic, assign) KBottomBarStatus currentBottomBarStatus

Discussion

当前的输入状态

Declared In

RCChatSessionInputBarControl.h

  maxInputLines

输入框最大输入行数

@property (nonatomic, assign) NSInteger maxInputLines

Discussion

输入框最大输入行数

该变量设置范围为: 1~6, 超过该范围会自动调整为边界值

Declared In

RCChatSessionInputBarControl.h

  draft

草稿

@property (nonatomic, strong) NSString *draft

Discussion

草稿

Declared In

RCChatSessionInputBarControl.h

  mentionedInfo

@提醒信息

@property (nonatomic, strong, readonly) RCMentionedInfo *mentionedInfo

Discussion

@提醒信息

Declared In

RCChatSessionInputBarControl.h

  isMentionedEnabled

是否允许@功能

@property (nonatomic, assign) BOOL isMentionedEnabled

Discussion

是否允许@功能

Declared In

RCChatSessionInputBarControl.h

– initWithFrame:withContainerView:controlType:controlStyle:defaultInputType:

初始化输入工具栏

- (instancetype)initWithFrame:(CGRect)frame withContainerView:(UIView *)containerView controlType:(RCChatSessionInputBarControlType)controlType controlStyle:(RCChatSessionInputBarControlStyle)controlStyle defaultInputType:(RCChatSessionInputBarInputType)defaultInputType

Parameters

frame

显示的Frame

containerView

所处的会话页面View

controlType

菜单类型

controlStyle

显示布局

defaultInputType

默认的输入模式

Return Value

输入工具栏对象

Discussion

初始化输入工具栏

Declared In

RCChatSessionInputBarControl.h

– setInputBarType:style:

设置输入工具栏的样式

- (void)setInputBarType:(RCChatSessionInputBarControlType)type style:(RCChatSessionInputBarControlStyle)style

Parameters

type

菜单类型

style

显示布局

Discussion

设置输入工具栏的样式

您可以在会话页面RCConversationViewController的viewDidLoad之后设置,改变输入工具栏的样式。

Declared In

RCChatSessionInputBarControl.h

– dismissPublicServiceMenuPopupView

销毁公众账号弹出的菜单

- (void)dismissPublicServiceMenuPopupView

Discussion

销毁公众账号弹出的菜单

Declared In

RCChatSessionInputBarControl.h

– cancelVoiceRecord

撤销录音

- (void)cancelVoiceRecord

Discussion

撤销录音

Declared In

RCChatSessionInputBarControl.h

– endVoiceRecord

结束录音

- (void)endVoiceRecord

Discussion

结束录音

Declared In

RCChatSessionInputBarControl.h

– updateStatus:animated:

设置输入框的输入状态

- (void)updateStatus:(KBottomBarStatus)status animated:(BOOL)animated

Parameters

status

输入框状态

animated

是否使用动画效果

Discussion

设置输入框的输入状态

如果需要设置,请在输入框执行containerViewWillAppear之后(即会话页面viewWillAppear之后)。

Declared In

RCChatSessionInputBarControl.h

– resetToDefaultStatus

重置到默认状态

- (void)resetToDefaultStatus

Discussion

重置到默认状态

Declared In

RCChatSessionInputBarControl.h

– containerViewSizeChanged

内容区域大小发生变化。

- (void)containerViewSizeChanged

Discussion

内容区域大小发生变化。

当本view所在的view frame发生变化,需要重新计算本view的frame时,调用此方法

Declared In

RCChatSessionInputBarControl.h

– containerViewSizeChangedNoAnnimation

内容区域大小发生变化。

- (void)containerViewSizeChangedNoAnnimation

Discussion

内容区域大小发生变化。

当本view所在的view frame发生变化,需要重新计算本view的frame时,调用此方法,无动画

Declared In

RCChatSessionInputBarControl.h

– setDefaultInputType:

设置默认的输入框类型

- (void)setDefaultInputType:(RCChatSessionInputBarInputType)defaultInputType

Parameters

defaultInputType

默认输入框类型

Discussion

设置默认的输入框类型

Declared In

RCChatSessionInputBarControl.h

– addMentionedUser:

添加被@的用户

- (void)addMentionedUser:(RCUserInfo *)userInfo

Parameters

userInfo

被@的用户信息

Discussion

添加被@的用户

Declared In

RCChatSessionInputBarControl.h

– openSystemAlbum

打开系统相册,选择图片

- (void)openSystemAlbum

Discussion

打开系统相册,选择图片

选择结果通过delegate返回

Declared In

RCChatSessionInputBarControl.h

– openSystemCamera

打开系统相机,拍摄图片

- (void)openSystemCamera

Discussion

打开系统相机,拍摄图片

拍摄结果通过delegate返回

Declared In

RCChatSessionInputBarControl.h

– openLocationPicker

打开地图picker,选择位置

- (void)openLocationPicker

Discussion

打开地图picker,选择位置

选择结果通过delegate返回

Declared In

RCChatSessionInputBarControl.h

– openFileSelector

打开文件选择器,选择文件

- (void)openFileSelector

Discussion

打开文件选择器,选择文件

选择结果通过delegate返回

Declared In

RCChatSessionInputBarControl.h

– setCommonPhrasesList:

常用语列表设置

- (BOOL)setCommonPhrasesList:(NSArray<NSString*> *)commonPhrasesList

Parameters

commonPhrasesList

您需要展示的常用语列表

Discussion

常用语列表设置

常用语条数需大于 0 条,每条内容最多可配置 30 个字,且只支持单聊。 如果二次设置常用语列表,需要设置后主动调用 - (void)updateStatus:(KBottomBarStatus)status animated:(BOOL)animated 方法

Declared In

RCChatSessionInputBarControl.h

– openDynamicFunction:

按照 tag 触发扩展中某个 pluginItem 的事件

- (void)openDynamicFunction:(NSInteger)functionTag

Parameters

functionTag

某个 pluginItem 的 tag

Discussion

按照 tag 触发扩展中某个 pluginItem 的事件

Declared In

RCChatSessionInputBarControl.h

  destructMessageMode

是否处于阅后即焚模式

@property (nonatomic, assign) BOOL destructMessageMode

Discussion

是否处于阅后即焚模式

Declared In

RCChatSessionInputBarControl.h