java.lang.Object | |
↳ | dji.sdk.base.DJIBaseComponent |
Known Direct Subclasses |
Class for components in a DJI Product. A component can be a camera, gimbal, remote controller, etc. A DJI product consists of several components.
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
|
Returns firmware version of the component.
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.
callback | The execution callback with the value(s) returned. |
---|
Get the serial number of the component. Note that this serial number does not match with the serial number found on the physical component.
callback | The execution callback with the value(s) returned. |
---|
This is the method for detecting whether the component is connected.
Sets the listener for the DJI component.