Skip to main content

IBaseDevice

interface IBaseDevice

Description: Basic device interface class

method getKeyManager

fun getKeyManager(): IKeyManager

Description: Get the Key management class

Input parameters: None。

Output parameters: the Key management class

Related parameters: IKeyManager。

method getDeviceDataManager

fun getDeviceDataManager(): IDeviceDataManager

Description: Gets the state cache management class.

Input parameters: None

Output parameters: IDeviceDataManager

Related parameters: IDeviceDataManager

method deviceNumber

fun deviceNumber(): Int

Description: Device number, used for regional multi-device connections.

Input parameters: None

Output parameters: Device number, used to distinguish between multiple device connections.

Related parameters: None

method getDeviceNumber

fun getDeviceNumber(): Int

Description: Device number, used to distinguish between multiple device connections.

Input parameters: None

Output parameters: Device number, used to distinguish between multiple device connections.

Related parameters: None

method setDeviceNumber

fun setDeviceNumber(deviceId : Int)

Description: Sets the device number, used to distinguish between multiple device connections. Input parameters: None

Output parameters: deviceId:Device number, used to distinguish between multiple device connections.

Related parameters: None

method setSdkSourceId

fun setSdkSourceId(sourceId : Int)

Description: Sets the local SDK source ID, used to distinguish between multiple device connections.

Input parameters: None

Output parameters: sourceId:used to distinguish between multiple device connections.

Related parameters: None

method getSdkSourceId

fun getSdkSourceId():Int

Description: Gets the local SDK source ID, used to distinguish between multiple device connections.

Input parameters: None

Output parameters: Source ID, used to distinguish between multiple device connections.

Related parameters: None

method type

fun type(): Type

Description: Device type: aircraft, remote controller, other.

Input parameters: None

Output parameters: Device type.

Related parameters:Type.

method getConfig

fun getConfig(): Config

Description: Protocol configuration.

Input parameters: None

Output parameters: Protocol configuration.

Related parameters: Config。

method getProtoProtocol

fun getProtoProtocol(): ProtoProtocol

Description:Protocol protocol.

Input parameters: None

Output parameters: Original protocol.

Related parameters: ProtoProtocol。

method getDeviceInfoBean

fun getDeviceInfoBean(): DeviceInfoBean?

Description:Gets device information.

Input parameters: None

Output parameters: DeviceInfoBean

Related parameters: DeviceInfoBean

method setDeviceInfoBean

fun setDeviceInfoBean(bean: DeviceInfoBean)

Description:Gets device information.

Input parameters: bean:Sets device information.

Output parameters: None

Related parameters: DeviceInfoBean

method startRemoterSync

fun startRemoterSync()

Description:Starts local remote controller synchronization.

Input parameters: None

Output parameters: None

Related parameters: None

method onDeviceDelete

fun onDeviceDelete()

Description:Deletes the device.

Input parameters: None

Output parameters: None

Related parameters: None

method clearCache

fun clearCache()

Description:Clears the state cache.

Input parameters: None

Output parameters: None

Related parameters: None

method isSupportDiff

fun isSupportDiff():Boolean?

Description:Supports differential upgrade.

Input parameters: None

Output parameters: Boolean

Related parameters: Boolean

method getUpgradeKeyManager

fun getUpgradeKeyManager(): IKeyManager? { return null }

Description:Upgrade-dedicated KeyManager.

Input parameters: None

Output parameters: IKeyManager

Related parameters: IKeyManager