# 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
getType

###### method getType

    WidgetType getType()

Package: | dji.sdk.keyvalue.value.payload

##### Description:

Gets the payload widget type.

##### Return:

WidgetType | Returns the payload widget type.

method
setType

###### method setType

    void setType(WidgetType type)

Package: | dji.sdk.keyvalue.value.payload

##### Description:

Sets the type of widget.

##### Input Parameters:

WidgetType type | The type of widget to be set.

method
getIndex

###### method getIndex

    Integer getIndex()

Package: | dji.sdk.keyvalue.value.payload

##### Description:

Gets the payload widget index.

##### Return:

Integer | Returns the payload widget index.

method
setIndex

###### method setIndex

    void setIndex(Integer index)

Package: | dji.sdk.keyvalue.value.payload

##### Description:

Sets the index of widget.

##### Input Parameters:

Integer index | The index of widget to be set.

method
getValue

###### method getValue

    Integer getValue()

Package: | dji.sdk.keyvalue.value.payload

##### Description:

Gets the payload widget value.

##### Return:

Integer | Returns the payload widget value.

method
setValue

###### method setValue

    void setValue(Integer value)

Package: | dji.sdk.keyvalue.value.payload

##### Description:

Sets the value of widget .

##### Input Parameters:

Integer value | The value of widget to be set.

×

## Search Mobile SDK Document

{{searchCount}} Results

- ### {{{(item.highlights && item.highlights.title) || item.title}}}

  {{{(item.highlights && item.highlights.content[0]) || item.title}}}

Load More
Loading...
Not Found