Notice: This documentation is archived. For the latest product features and documentation, please visit Dynamsoft Capture Vision Documentation.
LicenseVerificationListener
You are viewing a history document page of Dynamsoft Label Recognizer iOS v2.2.20.
LicenseVerificationListener
is the protocol to handle callback when message is output by license server.
@protocol LicenseVerificationListener
Method | Description |
---|---|
licenseVerificationCallback |
The callback of license server. It contains error message when license verification is failed. |
licenseVerificationCallback
-(void)licenseVerificationCallback:(BOOL)isSuccess error:(NSError * _Nullable)error;
Parameters
[in] isSuccess
Whether the license verification was successful.
[in] error
The error message from license server.
Code Snippet
- Objective-C
- Swift
@interface AppDelegate ()<LicenseVerificationListener> ... - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... [DynamsoftLicenseManager initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate:self]; } - (void)licenseVerificationCallback:(bool)isSuccess error:(NSError *)error { // Add code to do when license server returns. }
class AppDelegate: UIResponder, UIApplicationDelegate, LicenseVerificationListener { ... DynamsoftLicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", verificationDelegate: self) ... func licenseVerificationCallback(_ isSuccess: Bool, error: Error?) { // Add code to do when license server returns. } }