public class

DJIBaseComponent

extends Object
java.lang.Object
   ↳ dji.sdk.base.DJIBaseComponent
Known Direct Subclasses

Class Overview

Class for components in a DJI Product. A component can be a camera, gimbal, remote controller, etc. A DJI product consists of several components.

Summary

Nested Classes
interface DJIBaseComponent.DJICommandSentAckCallback This callback is used by the playback feature to acknowledge developers: the command has been sent. 
interface DJIBaseComponent.DJIComponentListener Receives notifications of component connectivity changes. 
Public Constructors
DJIBaseComponent()
Public Methods
void getFirmwareVersion(DJICompletionCallbackWith<String> callback)
Returns firmware version of the component.
void getLegacySerialNumber(DJICompletionCallbackWith<String> callback)
Get the legacy serial number of the component.
void getSerialNumber(DJICompletionCallbackWith<String> callback)
Get the serial number of the component.
boolean isConnected()
This is the method for detecting whether the component is connected.
void setDJIComponentListener(DJIBaseComponent.DJIComponentListener listener)
Sets the listener for the DJI component.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DJIBaseComponent ()

Public Methods

public void getFirmwareVersion (DJICompletionCallbackWith<String> callback)

Returns firmware version of the component.

public void getLegacySerialNumber (DJICompletionCallbackWith<String> callback)

Get the legacy serial number of the component. Note that this serial number does not match with the serial number found on the physical component.

Parameters
callback The execution callback with the value(s) returned.

public void getSerialNumber (DJICompletionCallbackWith<String> callback)

Get the serial number of the component. Note that this serial number does not match with the serial number found on the physical component.

Parameters
callback The execution callback with the value(s) returned.

public boolean isConnected ()

This is the method for detecting whether the component is connected.

public void setDJIComponentListener (DJIBaseComponent.DJIComponentListener listener)

Sets the listener for the DJI component.