License Initialization
Get a trial license
You can request a 30-day trial license via the Request a Trial License link.
You can contact our support team via the Contacting Us link when:
- You want request for an Offline trial license.
- Your license generation failed.
Get a Full License
Contact us to purchase a full license.
Set the License In the Code
For BarcodeScanner
- Objective-C
- Swift
DSBarcodeScannerConfig *config = [[DSBarcodeScannerConfig alloc] init]; config.license = @"YOUR-LICENSE-KEY";
let config = BarcodeScannerConfig() config.license = "YOUR-LICENSE-KEY"
For Foundational Barcode Reader
The following shows how to set the license in the code.
- Objective-C
- Swift
[DSLicenseManager initLicense:@"YOUR-LICENSE-KEY" verificationDelegate:self]; - (void)onLicenseVerified:(BOOL)isSuccess error:(nullable NSError *)error { if (!isSuccess && error != nil) { NSLog(@"error: %@", error); } }
LicenseManager.initLicense("YOUR-LICENSE-KEY", verificationDelegate: self) func onLicenseVerified(_ isSuccess: Bool, error: Error?) { if !isSuccess { if let error = error { print("\(error.localizedDescription)") } } }