DJI Windows SDK Documentation

class ComponentManager

sealed class ComponentManager
Declaration:DJI.WindowsSDK.Components
Description:

Manager that provides access to different components.

Class Members:
method GetProductHandler
ProductHandler GetProductHandler(uint productIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the product handler of the specific product. The handler is accessible even the product is not connected, so that related events can be subscribed before the product connection.

Input Parameters:
uint productIndexThe product index of the product handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
Return:
ProductHandlerThe handler. It is accessible even the product is not connected.
method GetGimbalHandler
GimbalHandler GetGimbalHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind.
Return:
GimbalHandlerThe handler. It is accessible even the component is not connected.
method GetBatteryHandler
BatteryHandler GetBatteryHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind.
Return:
BatteryHandlerThe handler. It is accessible even the component is not connected.
method GetFlightAssistantHandler
FlightAssistantHandler GetFlightAssistantHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind. Currently, this may not apply to Flight Assistant handler and it is for future extension.
Return:
FlightAssistantHandlerThe handler. It is accessible even the component is not connected.
method GetWiFiHandler
WiFiHandler GetWiFiHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind. Currently, this may not apply to WiFi handler and it is for future extension.
Return:
WiFiHandlerThe handler. It is accessible even the component is not connected.
method GetFlightControllerHandler
FlightControllerHandler GetFlightControllerHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind. Currently, this may not apply to Flight Controller handler and it is for future extension.
Return:
FlightControllerHandlerThe handler. It is accessible even the component is not connected.
method GetCameraHandler
CameraHandler GetCameraHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind.
Return:
CameraHandlerThe handler. It is accessible even the component is not connected.
method GetRemoteControllerHandler
RemoteControllerHandler GetRemoteControllerHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind. Currently, this may not apply to Remote Controller handler and it is for future extension.
Return:
RemoteControllerHandlerThe handler. It is accessible even the component is not connected.
method GetAccessoryHandler
AccessoryHandler GetAccessoryHandler(uint productIndex, uint componentIndex)
Declaration:DJI.WindowsSDK.Components
Description:

Gets the component handler with the specific product index and the specific component index. The handler is accessible even the component is not connected, so that related events can be subscribed before the component connection.

Input Parameters:
uint productIndexThe product index of the component handler. SDK protentially may support multiple products in the future. However, only 0 index is currently supported.
uint componentIndexThe component index of the component handler. It is used when the product supports multiple components of the same kind. Currently, this may not apply to Remote Controller handler and it is for future extension.
Return:
AccessoryHandlerThe handler. It is accessible even the component is not connected.