DJI Mobile SDK Documentation

      class Pipelines

      interface Pipelines
      Package:dji.mop.common
      Description:

      Manage multiple pipelines. Only supported by Matrice 300 RTK with firmware version v01.00.01.01 and above.

      Class Members:
      method getPipelines
      Map<Integer, Pipeline> getPipelines()
      Package:dji.mop.common
      Description:

      Retrieves instances of the products's pipelines. The key of the map table refers to the pipeline ID that connected with the Payload or the Onboard device, and the value refers to the pipeline instance object. When the pipeline connection is established successfully, a pipeline object is created and placed in the map table. When disconnect is invoked, the expired pipeline will be removed from the pipelins map table.

      Return:
      Map<Integer, Pipeline>The Pipeline Map object.
      method
      method connect
      void connect(int id, @NonNull TransmissionControlType transmissionType, @Nullable CommonCallbacks.CompletionCallback<PipelineError> callback)
      Package:dji.mop.common
      Description:

      Establishes the pipeline connection with the pipeline's ID. Returns an instance of the pipeline when it is connected successfully, otherwise, error information will be returned.

      Input Parameters:
      int idThe pipeline id.
      @NonNull TransmissionControlType transmissionTypeAn enum value of TransmissionControlType.
      @Nullable CommonCallbacks.CompletionCallback<PipelineError> callbackCompletion block to receive the result.
      method disconnect
      void disconnect(int id, @Nullable CommonCallbacks.CompletionCallback<PipelineError> callback)
      Package:dji.mop.common
      Description:

      Disconnects from the Payload or the Onboard device by pipeline ID, and clear the cached data in pipeline. If it is disconnected successfully, the pipeline instance will be removed from the pipeline map table, otherwise, error information will be returned.

      Input Parameters:
      @Nullable CommonCallbacks.CompletionCallback<PipelineError> callbackCompletion block to receive the result.