DJI Mobile SDK Documentation

      class DJIPipelines

      @interface DJIPipelines : DJIBaseComponent
      Header:DJIPipelines.h
      Inherits From:DJIBaseComponent
      Description:

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

      Class Members:
      property
      property pipelines
      @property (nonatomic, readonly) NSDictionary<NSNumber *, DJIPipeline *> *pipelines
      Header:DJIPipelines.h
      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:withCompletion is invoked, the expired pipeline will be removed from the pipelins map table.

      See Also:

      DJIPipeline

      method connect:pipelineType:withCompletion
      - (void)connect:(uint16_t)Id pipelineType:(DJITransmissionControlType)transferType withCompletion:(void (^_Nullable)(DJIPipeline *_Nullable pipeline, NSError *_Nullable error))completion
      Header:DJIPipelines.h
      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:
      uint16_t IdThe pipeline id.
      DJITransmissionControlType transferTypeThe pipeline type.
      DJIPipeline *_Nullable pipelineAn object of DJIPipeline.
      NSError *_Nullable errorError retrieving the value.
      void (^_Nullable)(DJIPipeline *_Nullable pipeline, NSError *_Nullable error) completionCompletion block to receive the result.
      method disconnect:withCompletion
      - (void)disconnect:(uint16_t)Id withCompletion:(DJICompletionBlock)completion
      Header:DJIPipelines.h
      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:
      uint16_t IdThe pipeline id.
      DJICompletionBlock completionCompletion block to receive the result.