-
创建房间
Declaration
Swift
public func createRoom(params: NECreateRoomParams, options: NECreateRoomOptions = NECreateRoomOptions(), callback: NECallback<AnyObject>? = nil)
Parameters
params
房间参数
options
房间配置
callback
回调闭包
-
获取房间模板
Declaration
Swift
public func fetchRoomTemplate(roomUuid: String, _ callback: @escaping NECallback<NERoomTemplate>)
Parameters
roomUuid
房间ID
callback
回调闭包
-
加入房间
Declaration
Swift
public func joinRoom(params: NEJoinRoomParams, options: NEJoinRoomOptions = NEJoinRoomOptions(), callback: @escaping NECallback<NERoomContext>)
Parameters
params
加入房间参数
options
加入房间配置
callback
回调闭包
-
拒绝会中邀请
Since
1.28.0Declaration
Swift
public func rejectInvite(roomUuid: String, callback: @escaping NECallback<NERoomContext>)
Parameters
roomUuid
房间号
callback
回调闭包
-
取消加入房间
Declaration
Swift
public func cancelJoinRoom(roomUuid: String)
Parameters
roomUuid
房间号
-
房间预览
Declaration
Swift
public func previewRoom(_: NEPreviewRoomParams = NEPreviewRoomParams(), options _: NEPreviewRoomOptions = NEPreviewRoomOptions(), callback: NECallback<NEPreviewRoomContext>? = nil)
Parameters
params
房间预览参数
callback
回调闭包
-
获取预览上下文
必须先调用previewRoom
Declaration
Swift
public func getPreviewRoomContext() -> NEPreviewRoomContext?
Return Value
预览上下文
-
获取房间上下文
Declaration
Swift
public func getRoomContext(roomUuid: String) -> NERoomContext?
Parameters
roomUuid
房间ID
Return Value
房间上下文
-
获取房间云录制列表
Declaration
Swift
public func getRoomCloudRecordList(roomArchiveId: String, callback: @escaping NECallback<[NERoomRecord]>)
Parameters
roomArchiveId
房间roomArchiveId
Return Value
房间录制信息
-
获取聊天室历史消息
Declaration
Swift
public func fetchChatroomHistoryMessages(roomArchiveId: String, option: NERoomHistoryMessageSearchOption, callback: NECallback<[NERoomChatMessage]>? = nil)
Parameters
roomArchiveId
房间roomArchiveId
option
获取聊天室历史消息的查询选项
callback
获取聊天室历史消息的回调
-
下载文件消息附件
Declaration
Swift
public func downloadAttachment(_ messageUuid: String, callback: NECallback<AnyObject>? = nil)
Parameters
messageUuid
消息唯一Id
callback
回调