Thanks for downloading Dynamsoft Label Recognizer Package!
Your download will start shortly. If your download does not begin, click here to retry.
LicenseVerificationListener
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. } }