Mobile Locker JavaScript SDK
    Preparing search index...

    Variable scannerConst

    scanner: {
        scanBusinessCard(eventID?: number): Promise<ScanResult>;
        scanBadge(eventID: number): Promise<ScanResult>;
    } = ...

    Type Declaration

    • scanBusinessCard: function
      • Open the native business card scanner and capture a contact.

        Parameters

        • OptionaleventID: number

          Optional lead retrieval event ID to associate the scan with.

        Returns Promise<ScanResult>

        A ScanResult — check isSuccess before accessing businessCard.

        iOS app only. Throws in all other environments.

        MobileLockerError if called outside the iOS app.

        const result = await mobilelocker.scanner.scanBusinessCard()
        if (result.isSuccess) console.log(result.businessCard)
    • scanBadge: function
      • Open the native badge scanner and capture an event attendee.

        Parameters

        • eventID: number

          The lead retrieval event ID to associate the scan with.

        Returns Promise<ScanResult>

        A ScanResult — check isSuccess before accessing attendee.

        iOS app only. Throws in all other environments.

        MobileLockerError if called outside the iOS app.

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