Skip to content

Commit bbb1537

Browse files
update to internal commit f1ec9283
1 parent dbe4f66 commit bbb1537

File tree

3 files changed

+25
-29
lines changed

3 files changed

+25
-29
lines changed

license-activation/index-v2.2.20.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ The following code snippets are using the public trial license to initialize the
3434
>
3535
>1.
3636
```javascript
37-
Dynamsoft.DLR.LabelRecognizer.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9";
37+
Dynamsoft.License.LicenseManager.initLicense("YOUR-LICENSE-KEY");
3838
```
3939
2.
4040
```java
41-
LabelRecognizer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", new DLRLicenseVerificationListener() {
41+
LabelRecognizer.initLicense("YOUR-LICENSE-KEY", new DLRLicenseVerificationListener() {
4242
@Override
4343
public void DLRLicenseVerificationCallback(boolean b, Exception e) {
4444
if(!b && e != null){
@@ -49,7 +49,7 @@ LabelRecognizer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", new DLRL
4949
```
5050
3.
5151
```objc
52-
[DynamsoftLabelRecognizer initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate:self];
52+
[DynamsoftLabelRecognizer initLicense:@"YOUR-LICENSE-KEY" verificationDelegate:self];
5353
- (void)DLRLicenseVerificationCallback:(bool)isSuccess error:(NSError *)error{
5454
if(!isSuccess && error != nil){
5555
NSString* msg = error.userInfo[NSUnderlyingErrorKey];
@@ -59,7 +59,7 @@ LabelRecognizer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", new DLRL
5959
```
6060
4.
6161
```swift
62-
DynamsoftLabelRecognizer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9",verificationDelegate:self)
62+
DynamsoftLabelRecognizer.initLicense("YOUR-LICENSE-KEY",verificationDelegate:self)
6363
func dlrLicenseVerificationCallback(_ isSuccess: Bool, error: Error?) {
6464
if(!isSuccess && error != nil){
6565
let err = error as NSError?
@@ -71,19 +71,19 @@ func dlrLicenseVerificationCallback(_ isSuccess: Bool, error: Error?) {
7171
5.
7272
```c
7373
char errorMessage[256];
74-
DLR_InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9", errorMessage, 256);
74+
DLR_InitLicense("YOUR-LICENSE-KEY", errorMessage, 256);
7575
```
7676
6.
7777
```cpp
7878
char errorMessage[256];
79-
CLabelRecognizer::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9", errorMessage, 256);
79+
CLabelRecognizer::InitLicense("YOUR-LICENSE-KEY", errorMessage, 256);
8080
```
8181
7.
8282
```csharp
83-
LabelRecognizer.InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9");
83+
LabelRecognizer.InitLicense("YOUR-LICENSE-KEY");
8484
```
8585
8.
8686
```java
87-
LabelRecognizer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9");
87+
LabelRecognizer.initLicense("YOUR-LICENSE-KEY");
8888
```
8989

license-activation/index.md

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,33 @@ The following code snippets are using the public trial license to initialize the
3535
>1.
3636
```javascript
3737
Dynamsoft.DLR.LabelRecognizer.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwNSJ9";
38-
```
38+
```
3939
2.
4040
```java
41-
LabelRecognizer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", new DLRLicenseVerificationListener() {
42-
@Override
43-
public void DLRLicenseVerificationCallback(boolean b, Exception e) {
44-
if(!b && e != null){
45-
e.printStackTrace();
46-
}
47-
}
41+
LicenseManager.initLicense("YOUR-LICENSE-KEY", this, (isSuccess, error) -> {
42+
if (!isSuccess) {
43+
error.printStackTrace();
44+
}
4845
});
4946
```
5047
3.
5148
```objc
52-
[DynamsoftLabelRecognizer initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate:self];
53-
- (void)DLRLicenseVerificationCallback:(bool)isSuccess error:(NSError *)error{
54-
if(!isSuccess && error != nil){
55-
NSString* msg = error.userInfo[NSUnderlyingErrorKey];
56-
NSLog(@"%@", msg);
49+
[DSLicenseManager initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate:self];
50+
- (void)onLicenseVerified:(BOOL)isSuccess error:(nullable NSError *)error {
51+
if (!isSuccess && error != nil) {
52+
NSLog(@"error: %@", error);
5753
}
5854
}
5955
```
6056
4.
6157
```swift
62-
DynamsoftLabelRecognizer.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9",verificationDelegate:self)
63-
func dlrLicenseVerificationCallback(_ isSuccess: Bool, error: Error?) {
64-
if(!isSuccess && error != nil){
65-
let err = error as NSError?
66-
let msg = err!.userInfo[NSUnderlyingErrorKey] as? String
67-
print(msg ?? "")
68-
}
58+
LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", verificationDelegate: self)
59+
func onLicenseVerified(_ isSuccess: Bool, error: Error?) {
60+
if !isSuccess {
61+
if let error = error {
62+
print("\(error.localizedDescription)")
63+
}
64+
}
6965
}
7066
```
7167
5.

release-notes/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ needAutoGenerateSidebar: false
1818

1919
| Versions | Available Editions |
2020
| -------- | ---------------------------------------------------------- |
21-
| 3.2.10 | [C++]({{site.cpp}}release-notes/cpp-3.html#3210-02292024){:target="_blank"} |
21+
| 3.2.10 | [C++]({{site.cpp}}release-notes/cpp-3.html#3210-03012024){:target="_blank"} |
2222
| 3.2.0 | [C++]({{site.cpp}}release-notes/cpp-3.html#320-01162024){:target="_blank"} |
2323

2424
## 3.0

0 commit comments

Comments
 (0)