代码拉取完成,页面将自动刷新
This is a input component in chatting interface, can combine Aurora IMUIMessageCollection. Including features like record voice and video, select photo, take picture etc, supports customize style either.
To use IMUIInputView only need two simple steps, or you can check out our sample project to try it yourself.
Setp one: drag a view to your UIViewController (storyboard or xib), and adjust class to IMUIInputView
Setp two: implement IMUIInputViewDelegate
func sendTextMessage(_ messageText: String)
func switchToMicrophoneMode(recordVoiceBtn: UIButton)
func startRecordVoice()
func finishRecordVoice(_ voicePath: String, durationTime: Double)
func cancelRecordVoice()
func switchToGalleryMode(photoBtn: UIButton)
func didSeletedGallery(AssetArr: [PHAsset])
func switchToCameraMode(cameraBtn: UIButton)
func didShootPicture(picture: Data)
func startRecordVideo()
func finishRecordVideo(videoPath: String, durationTime: Double)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。