Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.72 KB

File metadata and controls

56 lines (44 loc) · 1.72 KB
layout title description keywords needAutoGenerateSidebar noTitleIndex multiProgrammingLanguage enableLanguageSelection permalink
default-layout
License Methods - Dynamsoft Barcode Reader iOS API Reference
This page shows License methods of Dynamsoft Barcode Reader for iOS SDK.
initWithLicense, initWithLicenseFromServer, outputLicenseToString, license methods, api reference, objective-c, oc, swift
true
true
true
true
/programming/objectivec-swift/api-reference/primary-license-v9.0.2.html

License Methods

Method Description
initLicense Initialize license for DynamsoftBarcodeReader.

initLicense

Initializes DynamsoftBarcodeReader with a license.

+ (void)initLicense:(nonnull NSString *)license verificationDelegate:(nonnull id<DBRLicenseVerificationListener>)listener 
NS_SWIFT_NAME(initLicense(_:verificationDelegate:));

Parameters

[in] license The license key. [in, out] verificationDelegate The listener that handles callback when the license verification message is returned by the license server. See also DBRLicenseVerificationListener.

Return Value

The instance of DynamsoftBarcodeReader.

Code Snippet

>- Objective-C >- Swift > >1. ```objc [DynamsoftBarcodeReader initLicense:@"Put your license here" verificationDelegate: self]; - (void)DBRLicenseVerificationCallback:(bool)isSuccess error:(NSError *)error{ } ``` 2. ```swift DynamsoftBarcodeReader.initLicense("Put your license here", verificationDelegate: self) func dbrLicenseVerificationCallback(_ isSuccess: Bool, error: Error?) { } ```