Instructions

U.are.U SDK - Developer Guide 36
The JavaScript API
console.log(Fingerprint.DeviceModality[sucessObj.eDeviceModality]); // One
of the DeviceModality enumeration values that specifies the capture process used by the
fingerprint reader.
console.log(Fingerprint.DeviceUidType[sucessObj.eUidType]); // One of the
DeviceTechnology enumeration values that specifies the fingerprint reader technology.
}, function (error){
console.log(error.message);
});
}
StartAcquisition()
The startAcquisition() method starts fingerprint capture on the client computer.
TypeScript declaration
startAcquisition(sampleFormat: SampleFormat, deviceUid?: string): Promise<void>;
Returns
Returns an ES6 promise, which gets fulfilled if the fingerprint capture operation is started successfully, or rejected
otherwise.
Code Snippet - The following code will start capture mode.
var FingerprintSdkTest = (function () {
function FingerprintSdkTest() {
this.sdk = new Fingerprint.WebApi;
}
FingerprintSdkTest.prototype.startCapture = function () {
this.sdk.startAcquisition(Fingerprint.SampleFormat.PngImage).then(function () {
console.log("You can start capturing !!!");
}, function (error) {
console.log(error.message);
});
};
return FingerprintSdkTest;
})();
window.onload = function () {
test = new FingerprintSdkTest();
test.startCapture();
}
Parameter Description
sampleFormat
Required. One of the SampleFormat enumeration values that specifies the format of
fingerprint data to be returned.
deviceUid
Optional. The unique identifier of the fingerprint reader. If not specified, the capture is
performed on all available fingerprint readers.