Developer Documentation
Introducing SocketCam — High-Performance Camera-Based Scanning Solution
CaptureSDK includes FREE and PRO camera scanning capabilities.
You can now service all of your end-user needs with one SDK integration.
The C820 is free and utilizes the camera in the user's mobile device to act as a general-purpose barcode scanner. Directly integrated into CaptureSDK, SocketCam C820 gives you a free data capture interface for app development testing. SocketCam's user-friendly 1D/2D barcode scanning is also available to your app users at no cost. Free to integrate in your app, the C860 is an end-user subscription option offering superior scanning performance over the existing free C820.
Get Started with CaptureSDK
Android
Install the Android SDK by adding the following to your app/build.gradle
file:
repositories {
mavenCentral()
maven {
url "https://bin.socketmobile.com/repo/releases"
}
}
dependencies {
implementation 'com.socketmobile:capture-android:1.8.x'
}
iOS Swift Package Manager
In your Xcode project, add the following url in your packages:
https://oauth2:glpat-3NR_PuswgTcZxsTvT9b3@sdk.socketmobile.com/capture/swift-package-capturesdk.git
![intergrate-in-swift](https://socketimagescdn.azureedge.net/cdn/images/default-source/developers/swift-code.png?sfvrsn=9fcf8e14_2)
iOS Cocoapods
In your Podfile, add the source url of our private Cocoapods repository and the url of the CaptureSDK:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://my-private-specs.git'
source 'https://oauth2:glpat-3NR_PuswgTcZxsTvT9b3@sdk.socketmobile.com/capture/cocoapods-repo.git' // Socket Mobile private Cocoapods repository
target 'myProject'
...
pod 'CaptureSDK', :git => 'https://oauth2:glpat-3NR_PuswgTcZxsTvT9b3@sdk.socketmobile.com/capture/cocoapods-capturesdk.git'
...
end
ReactNative
In your package.json
, in the “dependencies” section, add our CaptureSDK like this:
{
"name": "myApp",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "18.2.0",
"react-native": "0.68.2",
"react-native-capturesdk": "https://oauth2:glpat-HQthS5rpDAcLHtngKxym@sdk.socketmobile.com/capture/react-native-capturesdk.git"
},
...
}
Flutter
Install the flutter package by adding the following to your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
...
capturesdk_flutter:
git:
url: https://oauth2:glpat-LRy6e5hgdw5BwCDTe33z@sdk.socketmobile.com/capture/flutter-capturesdk.git
version: ^1.5.11
...
.NET Maui Android
Add NuGet Source with the following command line:
nuget source Add -Name "CaptureSDK" -Source "https://sdk.socketmobile.com/api/v4/projects/9/packages/nuget/index.json" -UserName socketmobile+deployToken -Password gldt-kHr66JaPKg5d1p3zWUpL
Either access the package with Visual Studio's Package Manager or download with the following command line:
nuget install SocketMobile.Capture -Source "CaptureSDK"
OR
You can use a file nuget.config
at the same level than the project's solution:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<packageSources>
<add key="CaptureSDK" value="https://sdk.socketmobile.com/api/v4/projects/9/packages/nuget/index.json" />
</packageSources>
<packageSourceCredentials>
<CaptureSDK>
<add key="Username" value="socketmobile+deployToken" />
<add key="ClearTextPassword" value="gldt-kHr66JaPKg5d1p3zWUpL" />
</CaptureSDK>
</packageSourceCredentials>
</configuration>
.NET Maui iOS
Add NuGet Source with the following command line:
nuget source Add -Name "XamarinIos" -Source "https://sdk.socketmobile.com/api/v4/projects/10/packages/nuget/index.json" -UserName socketmobile+deployToken -Password gldt-kHr66JaPKg5d1p3zWUpL
Either access the package with Visual Studio's Package Manager or download with the following command line:
nuget install SocketMobile.Capture.Xamarin.iOS -Source "XamarinIos"
OR
You can use a file nuget.config
at the same level than the project's solution:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<packageSources>
<add key="XamarinIos" value="https://sdk.socketmobile.com/api/v4/projects/10/packages/nuget/index.json" />
</packageSources>
<packageSourceCredentials>
<XamarinIos>
<add key="Username" value="socketmobile+deployToken" />
<add key="ClearTextPassword" value="gldt-kHr66JaPKg5d1p3zWUpL" />
</XamarinIos>
</packageSourceCredentials>
</configuration>
Latest SDK Versions
CaptureSDK | Latest SDK Version | Native SDKs Included | Private Repository | Remarks |
Still Using ScanAPI SDK (SocketScan10)?
Discover the benefits of CaptureSDK, the quickest way to add robust, professional-grade barcode scanning to any iOS, Android or Windows app.
- Built and compatible with the latest version of the platform OS’s.
- Supports all SocketMobile data capture devices.
- Downloadable from protected repositories (Cocoapods, Maven, NuGet) using your favorite development tools.
- Simplifies the communication between your application and data reader.
- Offers peace of mind that your application is being run using our flagship set of tools.
- Samples in Github for most popular platforms (contact us if you are looking for something else!)
- Free camera-based barcode scanning with SocketCam built in.