DJI Mobile SDK Documentation

      class Callback

      interface Callback
      Package:dji.common.handheld
      Description:

      Callback for the handheld controller's current hardware state (e.g. the state of the physical buttons and joysticks).

      Class Members:
      Hardware State
      method
      method onUpdate
      void onUpdate(HardwareState state)
      Package:dji.common.handheld
      Description:

      Called when the handheld controller's current hardware state (e.g. the state of the physical buttons and joysticks) has been updated.

      Input Parameters:
      HardwareState stateAn object of HardwareState.