java.lang.Object | |
↳ | dji.sdk.base.DJIBaseProduct |
Known Direct Subclasses |
Class for all DJI Products that allows the user to get an instance of various components.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | DJIBaseProduct.DJIBaseProductListener | Receives notifications of component and product connectivity changes. | |||||||||
enum | DJIBaseProduct.DJIComponentGroupKey | Specifies all the components. | |||||||||
enum | DJIBaseProduct.DJIComponentKey | Specifies all the components. | |||||||||
interface | DJIBaseProduct.DJIVersionCallback | Callback interface for product version change. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DJIBaseProduct() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DJIAirLink |
getAirLink()
Retrieves an instance of the aircraft's AirLink.
| ||||||||||
ArrayList<DJIBattery> |
getBatteries()
Returns an array of aircraft's batteries.
| ||||||||||
DJIBattery |
getBattery()
Retrieves an instance of the aircraft's smart battery.
| ||||||||||
DJICamera |
getCamera()
Retrieves an instance of the aircraft's camera.
| ||||||||||
String |
getFirmwarePackageVersion()
Get the product's firmware package version.
| ||||||||||
DJIGimbal |
getGimbal()
Retrieves an instance of the aircraft's gimbal.
| ||||||||||
DJIMissionManager |
getMissionManager()
Retrieves an instance of the aircraft's mission manager.
| ||||||||||
Model |
getModel()
Retrieves the model of the product.
| ||||||||||
boolean |
isConnected()
true if the device is connected. | ||||||||||
void | onVersionChange(String oldVersion, String newVersion) | ||||||||||
void |
setDJIBaseProductListener(DJIBaseProduct.DJIBaseProductListener listener)
Sets the listener for the DJI base product.
| ||||||||||
void |
setDJIVersionCallback(DJIBaseProduct.DJIVersionCallback callback)
Sets the callback for the DJI version.
| ||||||||||
void |
setUpdateDiagnosticsListCallback(DJIDiagnostics.UpdateDiagnosticsListCallback callback)
Sets up the diagnostics list update callback
| ||||||||||
String |
toString()
Retrieves a String corresponding to the platform type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Retrieves an instance of the aircraft's AirLink.
Returns an array of aircraft's batteries. It is used when the aircraft has multiple batteries, e.g. Matrice 600.
Retrieves an instance of the aircraft's smart battery. M600 use this will only get one battery.
Retrieves an instance of the aircraft's camera.
Get the product's firmware package version. For Products except Phantom 4, Phantom 4 Pro, Mavic Pro and Inspire 2, Internet connection is required and the execution time for this method highly depends on the Internet status.
Retrieves an instance of the aircraft's gimbal.
Retrieves an instance of the aircraft's mission manager.
true
if the device is connected.
Sets the listener for the DJI base product.
Sets the callback for the DJI version.
Sets up the diagnostics list update callback
Retrieves a String corresponding to the platform type.