Skip to content

scanner

const scanner: {
scanBadge: Promise<ScanResult>;
};

Defined in: domains/scanner.ts:25

scanBadge(eventID): Promise<ScanResult>;

Open the native badge scanner and capture an event attendee.

Parameter Type Description
eventID number The lead retrieval event ID to associate the scan with.

Promise<ScanResult>

A ScanResult — check isSuccess before accessing attendee.

iOS app only. Throws in all other environments. Long-lived host bridge: per-request timeout: 0, no automatic retry.

MobileLockerError if called outside the iOS app.

const result = await mobilelocker.scanner.scanBadge(eventID)
if (result.isSuccess) console.log(result.attendee)