| java.lang.Object | ||
| ↳ | dji.sdk.base.DJIBaseComponent | |
| ↳ | dji.sdk.HandheldController.DJIHandheldController | |
This class contains interfaces to control a handheld device. You can make a handheld device enter sleep mode, awake from sleep mode, or shut down.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enum | DJIHandheldController.DJIHandheldPowerMode | Handheld power mode. | |||||||||
| interface | DJIHandheldController.DJIHandheldPowerModeListener | Callback to receive the updated power mode of the handheld controller. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DJIHandheldController() Constructor. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void | Destroy() Release the resource. | ||||||||||
| void | getFirmwareVersion(DJICompletionCallbackWith<String> callback) Returns firmware version of the component. | ||||||||||
| void | setDJIHandheldPowerModeListener(DJIHandheldController.DJIHandheldPowerModeListener listener) Set up the listener for the power mode status. | ||||||||||
| abstract void | setHandheldPowerMode(DJIHandheldController.DJIHandheldPowerMode mode, DJIBaseComponent.DJICompletionCallback callback) Set the power mode for handheld. | ||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class dji.sdk.base.DJIBaseComponent | |||||||||||
From class java.lang.Object | |||||||||||
Constructor.
Release the resource.
Returns firmware version of the component.
Set up the listener for the power mode status.
| listener | The listener for the power mode status. |
|---|
Set the power mode for handheld.
| mode | The power mode to set. CAUTION: when the mode is DJIHandheldPowerModePowerOff, the handheld device will be shut down and the connection will be broken. The user must then power on the device manually. |
|---|---|
| callback | The execution callback with the execution result returned. |