OnDisconnect

Top  Previous  Next

Name Space Hierarchy

C++

UtilPipeline::OnDisconnect

C#

UtilMPipeline.OnDisconnect

Syntax

C++

bool OnDisconnect(void);

C#

bool OnDisconnect();

Parameters

 

None

 

Description


The application should overwrite this OnDisconnect function to receive notification when the input device is disconnected. The default implementation sleeps for 10 milliseconds and returns true. The pipeline does not provide any valid notification before Init or after Close.

When a device is disconnected, this function will be invoked repeatedly until either the device is reconnected or the function returns false, which terminates the pipeline.

Return Status

 

true

Continue the pipeline processing.

 

false

Stop the pipeline processing.