DJI Mobile SDK Documentation

      class WidgetValue

      class WidgetValue implements DJIValue, JNIProguardKeepTag, ByteStream
      Package:dji.sdk.keyvalue.value.payload
      Description:

      Widget value.

      Supported since MSDK 5.2.0

      Class Members:
      method
      method getType
      WidgetType getType()
      Package:dji.sdk.keyvalue.value.payload
      Description:

      Gets the payload widget type.

      Return:
      WidgetTypeReturns the payload widget type.
      method
      method setType
      void setType(WidgetType type)
      Package:dji.sdk.keyvalue.value.payload
      Description:

      Sets the type of widget.

      Input Parameters:
      WidgetType typeThe type of widget to be set.
      method
      method getIndex
      Integer getIndex()
      Package:dji.sdk.keyvalue.value.payload
      Description:

      Gets the payload widget index.

      Return:
      IntegerReturns the payload widget index.
      method
      method setIndex
      void setIndex(Integer index)
      Package:dji.sdk.keyvalue.value.payload
      Description:

      Sets the index of widget.

      Input Parameters:
      Integer indexThe index of widget to be set.
      method
      method getValue
      Integer getValue()
      Package:dji.sdk.keyvalue.value.payload
      Description:

      Gets the payload widget value.

      Return:
      IntegerReturns the payload widget value.
      method
      method setValue
      void setValue(Integer value)
      Package:dji.sdk.keyvalue.value.payload
      Description:

      Sets the value of widget .

      Input Parameters:
      Integer valueThe value of widget to be set.