public abstract class

DJIHandheldController

extends DJIBaseComponent
java.lang.Object
   ↳ dji.sdk.base.DJIBaseComponent
     ↳ dji.sdk.HandheldController.DJIHandheldController

Class Overview

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.

Summary

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

Public Constructors

public DJIHandheldController ()

Constructor.

Public Methods

public void Destroy ()

Release the resource.

public void getFirmwareVersion (DJICompletionCallbackWith<String> callback)

Returns firmware version of the component.

public void setDJIHandheldPowerModeListener (DJIHandheldController.DJIHandheldPowerModeListener listener)

Set up the listener for the power mode status.

Parameters
listener The listener for the power mode status.

public abstract void setHandheldPowerMode (DJIHandheldController.DJIHandheldPowerMode mode, DJIBaseComponent.DJICompletionCallback callback)

Set the power mode for handheld.

Parameters
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.