Get Started with CaptureSDK

Add barcode scanning and NFC reading and writing to your app

Learn the core concepts and get the SDK for your platform. Start scanning in your application with just a few lines of code.

Start Scanning for FREE

Follow this step-by-step guide to seamlessly incorporate CaptureSDK into your application and start scanning today.

Get the SDK

All our SDKs are hosted on public repositories. Select your platform to find installation instructions.

Swift Package Manager
// Add to your Package.swift or via Xcode:
// File > Add Package Dependencies > Enter URL:
https://github.com/SocketMobile/swift-package-capturesdk

CaptureSDK Basics

Understand the four core concepts that power every CaptureSDK integration.

Device Connection

CaptureSDK automatically manages device discovery and connection. When initialized, the SDK connects to paired readers and dispatches device arrival events to your application. On iOS, devices connect via Bluetooth Classic through the External Accessory framework. On Android and Windows, connections are managed through the Companion Service.

Scanning Events

The SDK uses an event-driven architecture to deliver scan data to your application. When a barcode is scanned or an NFC tag is read, the SDK triggers a decoded data event with the captured information. This works identically whether using a physical scanner, NFC reader, or SocketCam camera scanning.

Decoded Data

Scan results include the decoded string data, the raw byte data, and the symbology type (e.g., UPC-A, QR Code, Code 128). The unified data format ensures consistent handling regardless of the input device, making it easy to process barcodes and NFC data uniformly.

Error Handling

CaptureSDK provides comprehensive error reporting through result codes. Each operation returns a result indicating success or a specific error condition. Common errors include device not found, invalid AppKey, connection timeout, and Bluetooth permission issues.