Interface NERoomKit
-
- All Implemented Interfaces:
public interface NERoomKitRoomKit 入口
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNERoomKit.Companion
-
Method Summary
Modifier and Type Method Description abstract Unitinitialize(Context context, NERoomKitOptions options, NECallback<Unit> callback)初始化 abstract <T extends NEBaseService> TgetService(Class<T> type)获取服务,目前支持(NEAuthService、NERoomService) abstract UnitaddGlobalEventListener(NEGlobalEventListener listener)添加全局事件监听器 abstract UnitremoveGlobalEventListener(NEGlobalEventListener listener)移除全局事件监听器 abstract IntegerswitchLanguage(NERoomLanguage language)切换语言,组件不会缓存该设置。 abstract StringgetSDKLogPath()返回日志路径。如果未初始化,返回null abstract UnituploadLog(NECallback<String> callback)上传日志 abstract IntegerswitchDomain(String domain)切换SDK服务器域名 abstract XKitHADomainInfoResultgetAvailableDomain(String appKey)基于 AppKey 获取可用的服务器域名。 abstract ObjectinvokeMethod(String method, Map<String, Object> arguments)方法调用 abstract NESDKVersionsgetSdkVersions()版本信息 abstract BooleanisInitialized()查询初始化状态 abstract NEAuthServicegetAuthService()获取鉴权服务,提供登录、登出能力 abstract NERoomServicegetRoomService()获取房间服务,提供创建、加入房间能力 abstract NEMessageChannelServicegetMessageChannelService()获取消息通道服务,提供房间内发送自定义消息能力 abstract NENosServicegetNosService()获取NOS服务,提供NOS上传下载能力 abstract NEPlayerServicegetPlayerService()获取播放器服务,提供视频播放能力 abstract StringgetDeviceId()获得设备号 -
-
Method Detail
-
initialize
abstract Unit initialize(Context context, NERoomKitOptions options, NECallback<Unit> callback)
初始化
- Parameters:
context- 上下文options- roomKit选项callback- 回调
-
getService
abstract <T extends NEBaseService> T getService(Class<T> type)
获取服务,目前支持(NEAuthService、NERoomService)
- Parameters:
type- 服务Class
-
addGlobalEventListener
abstract Unit addGlobalEventListener(NEGlobalEventListener listener)
添加全局事件监听器
- Parameters:
listener- 全局事件监听器
-
removeGlobalEventListener
abstract Unit removeGlobalEventListener(NEGlobalEventListener listener)
移除全局事件监听器
- Parameters:
listener- 全局事件监听器
-
switchLanguage
abstract Integer switchLanguage(NERoomLanguage language)
切换语言,组件不会缓存该设置。
- Parameters:
language- 目标语言
-
getSDKLogPath
abstract String getSDKLogPath()
返回日志路径。如果未初始化,返回null
-
uploadLog
abstract Unit uploadLog(NECallback<String> callback)
上传日志
- Parameters:
callback- 上传结果的回调,返回产物下载地址
-
switchDomain
abstract Integer switchDomain(String domain)
切换SDK服务器域名
- Parameters:
domain- SDK服务器域名
-
getAvailableDomain
abstract XKitHADomainInfoResult getAvailableDomain(String appKey)
基于 AppKey 获取可用的服务器域名。
- Parameters:
appKey- 应用 AppKey。
-
invokeMethod
abstract Object invokeMethod(String method, Map<String, Object> arguments)
方法调用
- Parameters:
method- 方法名
-
getSdkVersions
abstract NESDKVersions getSdkVersions()
版本信息
-
isInitialized
abstract Boolean isInitialized()
查询初始化状态
-
getAuthService
abstract NEAuthService getAuthService()
获取鉴权服务,提供登录、登出能力
-
getRoomService
abstract NERoomService getRoomService()
获取房间服务,提供创建、加入房间能力
-
getMessageChannelService
abstract NEMessageChannelService getMessageChannelService()
获取消息通道服务,提供房间内发送自定义消息能力
-
getNosService
abstract NENosService getNosService()
获取NOS服务,提供NOS上传下载能力
-
getPlayerService
abstract NEPlayerService getPlayerService()
获取播放器服务,提供视频播放能力
-
getDeviceId
abstract String getDeviceId()
获得设备号
-
-
-
-