Instructions

U.are.U SDK - Developer Guide 37
The JavaScript API
stopAcquisition
The stopAcquisition() method stops the previously started fingerprint capture on the client computer.
TypeScript declaration
stopAcquisition(deviceUid?: string): Promise<void>;
Returns an ES6 promise, which gets fulfilled if the fingerprint capture operation is stopped successfully, or rejected
otherwise.
Code Snippet - The following code will stop capture mode.
var FingerprintSdkTest = (function () {
function FingerprintSdkTest() {
this.sdk = new Fingerprint.WebApi;
}
FingerprintSdkTest.prototype.stopCapture = function () {
this.sdk.stopAcquisition().then(function () {
console.log("Capturing stopped !!!");
}, function (error) {
showMessage(error.message);
});
};
return FingerprintSdkTest;
})();
window.onload = function () {
test = new FingerprintSdkTest();
test.stopCapture();
}
Fingeprint.WebApi events
The table below lists the Fingerprint.WebApi events.
Parameter Description
deviceUid
Optional. The unique identifier of the fingerprint reader. If not specified, the capture on
all available fingerprint readers will be stopped.
Parameter Description
DeviceConnected
A fingerprint reader is connected to the client computer.
DeviceDisconnected
A fingerprint reader is disconnected from the client computer.
SamplesAcquired
Fingerprint data has been captured.
QualityReported
Fingerprint image quality data has been reported.
ErrorOccurred
An error occurred during fingerprint capture.
CommunicationFailed
An error occurred during communication with the U.are.U SDK