capturePhoto()
Capture an ID-1 sized card image (requires Interactive Kiosk with ID Tray).
capturePhoto(): Promise<{ path: string }>
Returns
Promise resolving to { path: string } - local file path to captured image
Example
try {
const { path } = await AilaSDK.capturePhoto();
console.log('Card image saved to:', path);
} catch (error) {
console.error('Capture failed:', error);
}
info
You can also listen to the onId1CardCapture event for card capture results.