NERoomService
@objcMembers
public class NERoomService : NEBaseService
房间服务
-
创建房间
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
回调闭包
-
房间预览
Declaration
Swift
public func previewRoom(_ params: 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
房间上下文