SignaturePad.waitForCapture Method¶
Module: SignaturePad
Definition¶
Blocks the calling thread until new capture data is available or the specified timeout period elapses.
This function is useful for synchronizing with the capture process.
wait_for_capture(self, timeout: int) -> bool
Parameters
timeout
intin The maximum amount of time (in milliseconds) to wait for new capture data to become available. A value of 0 can be used to wait indefinitely.
Returns
bool
Outputs a boolean value indicating whether new capture data is available after the wait period. true if new data is available, false otherwise.
Exceptions
An error has occurred during Devices Library execution.
bool waitForCapture(int timeout)
Parameters
timeout
intin The maximum amount of time (in milliseconds) to wait for new capture data to become available. A value of 0 can be used to wait indefinitely.
Returns
bool
Outputs a boolean value indicating whether new capture data is available after the wait period. true if new data is available, false otherwise.
Exceptions
An error has occurred during Devices Library execution.
public bool WaitForCapture(int timeout)
Parameters
timeout
intin The maximum amount of time (in milliseconds) to wait for new capture data to become available. A value of 0 can be used to wait indefinitely.
Returns
bool
Outputs a boolean value indicating whether new capture data is available after the wait period. true if new data is available, false otherwise.
Exceptions
An error has occurred during Devices Library execution.
public boolean waitForCapture(int timeout) throws DevicesException
Parameters
timeout
intin The maximum amount of time (in milliseconds) to wait for new capture data to become available. A value of 0 can be used to wait indefinitely.
Returns
boolean
Outputs a boolean value indicating whether new capture data is available after the wait period. true if new data is available, false otherwise.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesSignaturePad_WaitForCapture (
ID3_DEVICES_SIGNATURE_PAD hSignaturePad,
int timeout,
bool * available)
Parameters
hSignaturePad
ID3_DEVICES_SIGNATURE_PADin Handle to the SignaturePad object.timeout
intin The maximum amount of time (in milliseconds) to wait for new capture data to become available. A value of 0 can be used to wait indefinitely.available
bool *out Outputs a boolean value indicating whether new capture data is available after the wait period. true if new data is available, false otherwise.
Returns