DJI Mobile SDK Documentation

      class ListItemOperation

      @Keep
      class ListItemOperation
      Package:dji.open.pilot.base.ui.model
      Description:

      List item incremental operation data, used for serialized transmission of INSERT / UPDATE operations. It contains the target operation position and item data, and is transmitted between the Client and Server via Gson serialization/deserialization.

      Supported since MSDK 5.20.1

      Class Members:
      method getPosition
      int getPosition() 
      Package:dji.open.pilot.base.ui.model
      Description:

      Gets the target position of the list item operation.

      Supported since MSDK 5.20.1

      Return:
      intThe target position of the list item operation.
      method setPosition
      void setPosition(int position) 
      Package:dji.open.pilot.base.ui.model
      Description:

      Sets the target position of the list item operation.

      Supported since MSDK 5.20.1

      Input Parameters:
      int positionThe target operation position.
      method
      method getItem
      @NonNull
      ListItemData getItem()
      Package:dji.open.pilot.base.ui.model
      Description:

      Gets the list item data associated with this operation.

      Supported since MSDK 5.20.1

      Return:
      ListItemDataThe list item data associated with this operation.
      method
      method setItem
      void setItem(@NonNull ListItemData item) 
      Package:dji.open.pilot.base.ui.model
      Description:

      Sets the list item data associated with this operation.

      Supported since MSDK 5.20.1

      Input Parameters:
      @NonNull ListItemData itemThe item data.