Skip to main content

遥控器设备接口

interface IAutelRemoteDevice​

描述: 遥控器设备接口

method getATKeyManager​

fun getATKeyManager(): IKeyManager

描述: 获取ATService业务KeyManager

输入参数: 无。

输出参数: IKeyManager

相关参数: IKeyManager

method getRemoteSn​

fun getRemoteSn(onSuccess: (String) -> Unit)

描述: 获取遥控器SN号

输入参数: onSuccess:回调函数。

输出参数: 无。

相关参数: String

method getSnImmediately​

fun getSnImmediately():String?

描述: 立即返回缓存sn,可能为空

输入参数: 无。

输出参数: String

相关参数: String

method rebootDevice​

fun rebootDevice(): Boolean

描述: 重启遥控设备

输入参数: 无。

输出参数: Boolean

相关参数: Boolean

method getDeviceStateData​

fun getDeviceStateData(): RemoteCacheData

描述: 获取设备缓存数据

输入参数: 无。

输出参数: RemoteCacheData

相关参数: RemoteCacheData

method getRcType​

fun getRcType():String?

描述: 获取遥控器型号

输入参数: 无。

输出参数: String

相关参数: String

method getVersion​

fun getVersion():String?

描述: 获取遥控器版本

输入参数: 无。

输出参数: String

相关参数: String