onId1CardCapture
Triggered when card image capture completes.
Event Data
{
success: boolean;
path: string;
error: string;
}
Example
AilaSDK.onId1CardCapture((event) => {
if (event.success) {
console.log('Card captured:', event.path);
displayCardImage(event.path);
} else {
console.error('Capture failed:', event.error);
}
});