Barcode

interface Barcode

Barcode feature — submit a scanned member/facility barcode for check-in.

Your app captures the barcode (QR or 1D) with its own scanner UI and passes the decoded value here; the SDK records the scan against the member, tagging it with the scan location when coordinates are supplied.

Platform & threading

  • submitBarcodeId is suspend and must be called from a coroutine.

  • Errors surface as Throwable and should be handled at the call site.

Offline behavior

Submissions flow through the SDK's offline outbox. When the network is unavailable the scan is queued and delivered later; in that case the returned AFResult has status = true and queued = true. Read AFResult.queued to tell "submitted online" from "queued for later delivery".

Functions

Link copied to clipboard
abstract suspend fun submitBarcodeId(id: String, lat: Double?, lng: Double?): AFResult

Submits a scanned barcode value for the signed-in member.