DeviceManager interface
interface IDeviceManager
Description: Device Management interface includes methods for managing devices, such as adding or removing devices
method getDroneDevices
fun getDroneDevices(): List<IAutelDroneDevice>
Description: Gets the aircraft list
Input parameters: None
Output parameter: Returns the autel drone device list
Related parameters:None。
method getRemoteDevices
fun getRemoteDevices(): List<IAutelRemoteDevice>
Description: Get list of remote devices
Input parameters: None
Output parameter: Returns the autel remote device list
Related parameters:None。
method getNestDevices
fun getNestDevices(): List<IAutelNestDevice>
Description: Retrives the list of machine nest devices
Input parameters: None
Output parameter: Returns the machine nest devices list
Related parameters:None。
method addDroneDevice
fun addDroneDevice(device: IAutelDroneDevice)
Description: Add an aircraft device
Input parameters: device: IAutelDroneDevice object
Output parameter: None
Related parameters:None。
method addNestDevice
fun addNestDevice(nest: IAutelNestDevice)
Description: Add an nest device
Input parameters: nest: IAutelNestDevice object
Output parameter: None
Related parameters:None。
method getDroneDeviceById
fun getDroneDeviceById(deviceId: Int): IAutelDroneDevice?
Description: Get aircraft by device id
Input parameters: deviceId: deviceId
Output parameter: Returns the IAutelDroneDevice object,if no drone device is available, the function will return null.
Related parameters:None。
method getNestDeviceById
fun getNestDeviceById(deviceId: Int): IAutelNestDevice?
Description: Retrives the machine nest through the device id
Input parameters: deviceId: deviceId
Output parameter: Returns the IAutelNestDevice object,if no nest device is available, the function will return null.
Related parameters:None。
method getFirstDroneDevice()
fun getFirstDroneDevice(): IAutelDroneDevice?
Description: Retrives the first drone device that is available
Input parameters: None。
Output parameter: Returns the IAutelDroneDevice object,if no drone device is available, the function will return null.
Related parameters:None。
method getFirstRemoteDevice
fun getFirstRemoteDevice(): IAutelRemoteDevice?
Description: Retrives the first remote device that is available
Input parameters: None。
Output parameter: Returns the IAutelRemoteDevice object,if no remote device is available, the function will return null.
Related parameters:None。
method getFirstRemoteUpgradeDevice
fun getFirstRemoteUpgradeDevice(): IBaseDevice?
Description: ]Gets the first remote device to upgrade
Input parameters: None。
Output parameter: Returns the IBaseDevice object.
Related parameters:None。
method getFirstDroneUpgradeDevice
fun getFirstDroneUpgradeDevice(): IBaseDevice?
Description: Gets the first drone device to upgrade
Input parameters: None。
Output parameter: Returns the IBaseDevice object.
Related parameters:None。
method getSwitchModeDevice
fun getSwitchModeDevice(): IBaseDevice?
Description: Get the first toggle mode setting
Input parameters: None。
Output parameter: Returns the IBaseDevice object.
Related parameters:None。
method getFirstNestDevice
fun getFirstNestDevice(): IAutelNestDevice?
Description: Get the first nest device
Input parameters: None。
Output parameter: Returns the IAutelNestDevice object.
Related parameters:None。
method addDroneListener
fun addDroneListener(listener: IAutelDroneListener)
Description: Flight device connection state change listener
Input parameters: listener: the IAutelDroneListener object.
Output parameter: None。
Related parameters:None。
method removeDroneListener
fun removeDroneListener(listener: IAutelDroneListener)
Description: Remove aircraft status listener
Input parameters: listener: the IAutelDroneListener object.
Output parameter: None。
Related parameters:None。
method mockOneTestDevice
fun mockOneTestDevice()
Description: simulate an airplane
Input parameters: None。
Output parameter: None。
Related parameters:None。
method removeMockOneTestDevice
fun removeMockOneTestDevice()
Description: Remove simulated aircraft
Input parameters: None。
Output parameter: None。
Related parameters:None。
method getConnectedDeviceIds
fun getConnectedDeviceIds(): List<Int>
Description: Get the id collection of connected aircraft
Input parameters: None。
Output parameter: Returns the connected devices list。
Related parameters:None。
method isConnected
fun isConnected(): Boolean
Description: Checks if an aircraft is connected
Input parameters: None。
Output parameter: Returns true if the drone is connected else false 。
Related parameters:None。
method isConnected
fun isConnected(): Boolean
Description: Checks if an aircraft is connected
Input parameters: None。
Output parameter: Returns true if the drone is connected else false 。
Related parameters:None。
method createRemoterUpgradeDevice
fun createRemoterUpgradeDevice()
Description: Add ground end upgrade
Input parameters: None。
Output parameter: None。
Related parameters:None。
method createSwitchModeDevice
fun createSwitchModeDevice()
Description: Add remote control switching mode
Input parameters: None。
Output parameter: None。
Related parameters:None。
method createDroneUpgradeDevice
fun createDroneUpgradeDevice()
Description: Add air end upgrade
Input parameters: None。
Output parameter: None。
Related parameters:None。
method getRemoteUpgradeDevices
fun getRemoteUpgradeDevices(): MutableList<IBaseDevice>
Description: Retrives the remote control upgrade device list
Input parameters: None。
Output parameter: Returns the base devices list。
Related parameters:None。
method getDroneUpgradeDevices
fun getDroneUpgradeDevices(): MutableList<IBaseDevice>
Description: Retrives the remote control upgrade device list
Input parameters: None。
Output parameter: Returns the base devices list。
Related parameters: None。
method addCameraListener
fun addCameraListener(listener: IAutelCameraListener)
Description: Add camera connection state change listener
Input parameters: listener: the camera listener。
Output parameter: None。
Related parameters: None。
method removeCameraListener
fun removeCameraListener(listener: IAutelCameraListener)
Description: Remove camera state listener
Input parameters: listener: the camera listener。
Output parameter: None。
Related parameters: None。