class PayloadWidget |
Package: | dji.common.payload |
Class to represent the properties of a payload widget. Payload SDK defines different types of widgets for the interaction between the payload device and the mobile device.
PayloadWidgetType getWidgetType() |
Package: | dji.common.payload |
Get the type of the widget. Different types have different type of values.
PayloadWidgetType | The type of the payload widget. |
int getWidgetIndex() |
Package: | dji.common.payload |
Get the index of the widget. An index is used to differentiate widgets of the same type.
int | The index of the payload widget, same type of widgets must have different index. |
int getWidgetValue() |
Package: | dji.common.payload |
Get the value of the payload widget.
int | The value of the payload widget, the widget of INPUT type will return an int value of 0(normal) or 1(pressed), SWITCH type will return a int value of 0(switch off) or 1(switch on), RANGE type will return a int value from 0 to 100 (inclusive), LIST type will return a int value from 0 to N (N is determined by firmware), INPUT type will return any int value which is set previously. |
String getName() |
Package: | dji.common.payload |
Get the name of the widget. This is determined by the payload device and not configurable through the mobile device.
String | The name of the payload widget. |
String getHintMsg() |
Package: | dji.common.payload |
Get the hint message of the payload widget.
String | The hint message of the payload widget, "INPUT" type of widget might has a hint message which describe the function of the widget. |
List<String> getSubItems() |
Package: | dji.common.payload |
Get the sub items list of the payload widget.
List<String> | The sub items list of the payload widget, LIST type widget could return the sub items, which describe the options or different functions related with the widget value, for example, if the widget has a list of sub items with size of 5, then the widget could accept the widget value between 0 to 4 (inclusive), the string with index of 0 will describe the function if the widget value of 0 is set. |
PayloadWidget(PayloadWidgetType widgetType, int widgetIndex, int widgetValue, String name) |
Package: | dji.common.payload |
Common widget information.
PayloadWidgetType widgetType | An enum value of PayloadWidgetType . |
int widgetIndex | The widget index. |
int widgetValue | The value of the widget. |
String name | The widget name. |
PayloadWidget(PayloadWidgetType widgetType, int widgetIndex, int widgetValue, String name, String hintMsg) |
Package: | dji.common.payload |
Common widget information with message hint.
PayloadWidgetType widgetType | An enum value of PayloadWidgetType . |
int widgetIndex | The widget index. |
int widgetValue | The value of the widget. |
String name | The widget name. |
String hintMsg | A hint message string. |
PayloadWidget(PayloadWidgetType widgetType, int widgetIndex, int widgetValue, String name, List<String> subItems) |
Package: | dji.common.payload |
List widget information with the sub items.
PayloadWidgetType widgetType | An enum value of PayloadWidgetType . |
int widgetIndex | The widget index. |
int widgetValue | The value of the widget. |
String name | The widget name. |
List<String> subItems | A list of sub items strings. |
PayloadWidget(PayloadWidgetType widgetType, |
Package: | dji.common.payload |
List widget information with the sub items and message hint.
PayloadWidgetType widgetType | An enum value of PayloadWidgetType . |
int widgetIndex | The widget index. |
int widgetValue | The value of the widget. |
String name | The widget name. |
String hintMsg | A hint message string. |
List<String> subItems | A list of sub items strings. |
enum PayloadWidgetType |
Package: | dji.common.payload |
Types of widgets on the payload device.
{{searchCount}} Results