Class to manage SDK interconnection pipeline. pipeline can be used to establish a connection between MSDK and PSDK devices, and is used to transmit data between MSDK and PSDK devices.
Sets the pipeline connection listener. You need to call connectPipeline to connect the pipeline. When the pipeline is successfully connected, the connection event can be obtained through this listener.
Retrieves instances of the products's pipelines. The key of the map table refers to the pipeline ID that connected with the payload 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 disconnectPipeline is invoked, the expired pipeline will be removed from the pipelins map table.
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. After a successful connection, the pipeline instance can be obtained by adding the addPipelineConnectionListener listener. You can also call getPipelines to get a list of all connected pipelines synchronously.
Supported since MSDK 5.3.0
Input Parameters:
int pipelineId
Pipeline ID, this ID needs to be negotiated with the PSDK payload developer.
Disconnect from the PSDK device through the pipeline ID, and clear the cached data in the pipeline list. If the connection is successfully disconnected, the pipe instance will be deleted from the pipe mapping table, otherwise an error message will be returned.
Supported since MSDK 5.3.0
Input Parameters:
int pipelineId
Pipeline ID, obtained from the connected pipeline instance.