DJI Mobile SDK Documentation

      class WidgetValueChangedCallback

      interface WidgetValueChangedCallback
      Package:dji.sdk.payload
      Description:

      This interface provides a callback to get value of the widget when changed.

      Class Members:

      Callback Method

      method onWidgetValueChanged
      void onWidgetValueChanged(PayloadWidget.PayloadWidgetType type, int index, int newValue)
      Package:dji.sdk.payload
      Description:

      Called when the value of the widget is changed.

      Input Parameters:
      PayloadWidget.PayloadWidgetType typeThe enum value of PayloadWidgetType.
      int indexThe index of the widget.
      int newValueAn int value.