public class

DJIBaseProduct

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

Class Overview

Class for all DJI Products that allows the user to get an instance of various components.

Summary

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

Public Constructors

public DJIBaseProduct ()

Public Methods

public DJIAirLink getAirLink ()

Retrieves an instance of the aircraft's AirLink.

Returns
  • An instance of the aircraft's AirLink.

public ArrayList<DJIBattery> getBatteries ()

Returns an array of aircraft's batteries. It is used when the aircraft has multiple batteries, e.g. Matrice 600.

Returns
  • An instance of the aircraft's smart battery.

public DJIBattery getBattery ()

Retrieves an instance of the aircraft's smart battery. M600 use this will only get one battery.

Returns
  • An instance of the aircraft's smart battery.

public DJICamera getCamera ()

Retrieves an instance of the aircraft's camera.

Returns
  • An instance of the aircraft's camera.

public String getFirmwarePackageVersion ()

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.

public DJIGimbal getGimbal ()

Retrieves an instance of the aircraft's gimbal.

Returns
  • An instance of the aircraft's gimbal.

public DJIMissionManager getMissionManager ()

Retrieves an instance of the aircraft's mission manager.

Returns
  • An instance of the aircraft's mission manager.

public Model getModel ()

Retrieves the model of the product.

public boolean isConnected ()

true if the device is connected.

public void onVersionChange (String oldVersion, String newVersion)

public void setDJIBaseProductListener (DJIBaseProduct.DJIBaseProductListener listener)

Sets the listener for the DJI base product.

public void setDJIVersionCallback (DJIBaseProduct.DJIVersionCallback callback)

Sets the callback for the DJI version.

public void setUpdateDiagnosticsListCallback (DJIDiagnostics.UpdateDiagnosticsListCallback callback)

Sets up the diagnostics list update callback

public String toString ()

Retrieves a String corresponding to the platform type.