API Reference
Complete reference for all Aila SDK methods and properties. Each method is documented on its own page in the sidebar.
Quick Start
import AilaSDK from 'react-native-aila-sdk';
// Initialize SDK
const { multiScanMode, beepMode } = AilaSDK.getConstants();
await AilaSDK.init({
multiScanMode: multiScanMode.AilaMultiScanModeOn,
beepMode: beepMode.AilaBeepModeOff,
});
// Activate license
AilaSDK.readLicense('your-license-key-here');
// Listen for scans
AilaSDK.onScan((event) => {
console.log('Scanned:', event.scanText);
});
// Start scanning
AilaSDK.startScanning();
Method Categories
Initialization & Configuration
init()- Initialize the SDKsetConfiguration()- Update configurationreadLicense()- Activate licensesetLicenseProfile()- Set cloud licensing profilegetConstants()- Get SDK constants
Scanning Operations
startScanning()- Begin scanningstopScanning()- Stop scanningresetScan()- Reset for next scan
Camera & Capture
enableCamera()- Enable cameradisableCamera()- Disable cameracapturePhoto()- Capture card image
Hardware Control
enableSpeaker()- Enable speakerdisableSpeaker()- Disable speakerbeep()- Trigger beep and flashoverrideLightLevels()- Control LED intensityoverrideLightTimeout()- Control light timeout
Device Information
getSDKVersion()- Get SDK versiongetFirmwareVersionNumber()- Get firmware versiongetSerialNumber()- Get serial numbergetHardwareDescription()- Get hardware descriptiongetHardwareClass()- Get hardware classgetConnectionInfo()- Get connection infogetChargerWattage()- Get charger wattagegetSDKLicenseInfo()- Get license infocomsTest()- Test RSM connectivity
Events
onScan- Scan complete eventonMRZDetected- MRZ detected eventonHardwareChange- Hardware connection changeonId1CardCapture- Card capture completeonId1CardDetected- Card detected in trayonMotionDetected- Motion detectedonSessionLost- Session lost