Skip to content

Commit e5bc824

Browse files
Merge pull request #1 from dynamsoft-docs/preview
Preview
2 parents 2d3d74d + 66b19ee commit e5bc824

File tree

25 files changed

+1503
-33
lines changed

25 files changed

+1503
-33
lines changed

_config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
repositoryUrl: https://github.com/dynamsoft-docs/code-parser-docs-mobile/blob/main
2-
repository: Dynamsoft-Docs/code-parser-docs-mobile
2+
repository: dynamsoft-docs/code-parser-docs-mobile
33
docFullPath: https://www.dynamsoft.com/code-parser/docs/mobile/
44
firstLevelUrl: /code-parser/docs/mobile/
5-
docHomePage: /code-parser/docs/mobile/introduction/
5+
docHomePage: /code-parser/docs/core/introduction/
66

77
enumerations: /code-parser/docs/core/parameters/enum/
88
parameters-reference: /code-parser/docs/core/parameters/reference/
@@ -41,6 +41,8 @@ plugins:
4141
- jekyll-readme-index
4242
- jekyll-seo-tag
4343

44+
edition: mobile
45+
4446
defaults:
4547
- scope:
4648
path: ""
@@ -52,12 +54,12 @@ defaults:
5254
- scope:
5355
path: "programming/android"
5456
values:
55-
docRootName: "Label Recognizer Android Edition"
57+
docRootName: "Code Parser Android Edition"
5658
docHomePage: "/code-parser/docs/mobile/programming/android/"
5759
- scope:
5860
path: "programming/ios"
5961
values:
60-
docRootName: "Label Recognizer iOS Edition"
62+
docRootName: "Code Parser iOS Edition"
6163
docHomePage: "/code-parser/docs/mobile/programming/ios/"
6264
- scope:
6365
path: "Hide_Tree_Page.html"

_data/product_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
useGroupedVersion: true
22

3-
version_info_list_desktop:
3+
version_info_list_mobile:
44
- value: latest version

_includes/release-notes/product-highlight-2.0.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
* `DynamsoftCodeParser` SDK has been revamped to integrate with `DynamsoftCaptureVision (DCV)` architecture, which is newly established to aggregate the features of functional products powered by Dynamsoft. The features are designed to be pluggable, customizable and interactable. In addition, the functional products share the computation so that their processing speed is much higher than working individually.
3-
* Added C++ Edition. With this new edition, developers can effortlessly integrate code parsing capabilities into their C++ applications.
3+
* Added Mobile Editions. With these new editions, developers can effortlessly integrate code parsing capabilities into their Android and iOS applications.
44
* Added supports to parse following code types:
55
* [MRTD_TD1_ID]({{ site.code_types }}mrtd.html)
66
* [MRTD_TD2_ID]({{ site.code_types }}mrtd.html)

_includes/sidelist-full-tree.html

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
1-
<!--
2-
<li lang="python">
3-
<a href="{{ site.python }}" class="otherLinkColour">Python Edition Introduction</a>
4-
</li>
5-
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-programming/programming-python.html" -%}
6-
<li lang="java">
7-
<a href="{{ site.java }}" class="otherLinkColour">Java Edition Introduction</a>
8-
</li>
9-
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-programming/programming-java.html" -%}
10-
<li lang="dotnet">
11-
<a href="{{ site.dotnet }}" class="otherLinkColour">.NET Edition Introduction</a>
12-
</li>
13-
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-programming/programming-dotnet.html" -%}
14-
-->
15-
<li lang="cplusplus">
16-
<a href="{{ site.cpp }}" class="otherLinkColour">Introduction</a>
17-
</li>
18-
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-programming/programming-cpp.html" -%}
191

20-
<!--
21-
<li lang="c">
22-
<a href="{{ site.c }}" class="otherLinkColour">C Edition Introduction</a>
2+
<li lang="android">
3+
<a href="{{ site.dcp_android }}" class="otherLinkColour">DCP-Android Introduction</a>
4+
</li>
5+
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-programming/programming-android.html" -%}
6+
<li lang="ios">
7+
<a href="{{ site.dcp_ios }}" class="otherLinkColour">DCP-iOS Introduction</a>
238
</li>
24-
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-programming/programming-c.html" -%}
25-
-->
9+
{%- include liquid_searchVersionTreeFile.html ver=include.ver curPath=include.curPath targetRelativePath="sidelist-programming/programming-ios.html" -%}

_includes/sidelist-programming/programming-android.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<li lang="android" class="category">DEVELOPMENT</li>
1+
<li lang="android" class="category">DEVELOPMENT ON ANDROID</li>
22
<li lang="android"><a href="{{ site.dcp_android }}user-guide/getting-started.html" class="otherLinkColour">User Guide</a></li>
33
<li lang="android"><a class="otherLinkColour">API Reference</a>
44
<ul>
@@ -8,6 +8,7 @@
88
<li><a href="{{ site.dcp_android_api }}code-parser-module.html" class="otherLinkColour">CodeParserModule</a></li>
99
<li><a href="{{ site.dcv_android_api }}license/license-manager.html" class="otherLinkColour">LicenseManager</a></li>
1010
<li><a href="{{ site.dcp_android_api }}parsed-result-item.html" class="otherLinkColour">ParsedResultItem</a></li>
11+
<li><a href="{{ site.dcp_android_api }}parsed-result.html" class="otherLinkColour">ParsedResult</a></li>
1112
</ul>
1213
</li>
1314
<li><a class="otherLinkColour">Enumerations</a>
@@ -19,6 +20,7 @@
1920
</li>
2021
</ul>
2122
</li>
23+
<li lang="android" class="category">USEFUL RESOURCES</li>
2224
<li lang="android"><a href="{{ site.dcp_android_release_notes }}" class="otherLinkColour">Release Notes</a>
2325
<ul >
2426
<li ><a href="{{ site.dcp_android_release_notes }}android-2.html" class="otherLinkColour">Version 2.x</a></li>

_includes/sidelist-programming/programming-ios.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<li lang="objectivec-swift" class="category">DEVELOPMENT</li>
1+
<li lang="objectivec-swift" class="category">DEVELOPMENT ON IOS</li>
22
<li lang="objectivec-swift"><a href="{{ site.dcp_ios }}user-guide/getting-started.html" class="otherLinkColour">User Guide</a></li>
33
<li lang="objectivec-swift"><a class="otherLinkColour">API Reference</a>
44
<ul>
@@ -8,6 +8,7 @@
88
<li><a href="{{ site.dcp_ios_api }}code-parser-module.html" class="otherLinkColour">CodeParserModule</a></li>
99
<li><a href="{{ site.dcv_ios_api }}license/license-manager.html" class="otherLinkColour">LicenseManager</a></li>
1010
<li><a href="{{ site.dcp_ios_api }}parsed-result-item.html" class="otherLinkColour">ParsedResultItem</a></li>
11+
<li><a href="{{ site.dcp_ios_api }}parsed-result.html" class="otherLinkColour">ParsedResult</a></li>
1112
</ul>
1213
</li>
1314
<li><a class="otherLinkColour">Enumerations</a>
@@ -19,6 +20,7 @@
1920
</li>
2021
</ul>
2122
</li>
23+
<li lang="objectivec-swift" class="category">USEFUL RESOURCES</li>
2224
<li lang="objectivec-swift"><a href="{{ site.dcp_ios_release_notes }}" class="otherLinkColour">Release Notes</a>
2325
<ul >
2426
<li ><a href="{{ site.dcp_ios_release_notes }}ios-2.html" class="otherLinkColour">Version 2.x</a></li>

_layouts/default-layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{%- include head.html -%}
55

6-
<body class="dlrDoc">
6+
<body class="dcpDoc">
77
{% assign url = 'https://www.dynamsoft.com/shared/head/' %}
88
{% remote_include {{ url }} %}
99

@@ -67,7 +67,7 @@
6767
{%- include page_footer.html -%}
6868
</div>
6969

70-
<iframe id="sideBarIframe" src="{{ site.firstLevelUrl }}/Hide_Tree_Page.html" allow="" height="0" frameborder="0"></iframe>
70+
<iframe id="sideBarIframe" src="{{ site.firstLevelUrl }}Hide_Tree_Page.html" allow="" height="0" frameborder="0"></iframe>
7171

7272
<script type="text/javascript">
7373
anchors.add();
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
layout: default-layout
3+
title: CodeParserModule Class - Dynamsoft Code Parser SDK Android Edition API Reference
4+
description: This page shows CodeParserModule Class of Dynamsoft Code Parser SDK Android Edition.
5+
keywords: CodeParserModule, api reference, Android
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# CodeParserModule Class
10+
11+
`CodeParserModule` class defines general functions of the code parser module.
12+
13+
## Definition
14+
15+
*Namespace:* com.dynamsoft.dcp
16+
17+
*Assembly:* DynamsoftCodeParser.aar
18+
19+
```java
20+
class CodeParserModule
21+
```
22+
23+
| Method | Description |
24+
|----------------------|-------------|
25+
| [`getVersion`](#getversion) | Get version information of SDK.|
26+
27+
## getVersion
28+
29+
Get version information of SDK.
30+
31+
```java
32+
static String getVersion();
33+
```
34+
35+
**Return Value**
36+
37+
The version information string.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
layout: default-layout
3+
title: CodeParser Class - Dynamsoft Code Parser SDK Android Edition API Reference
4+
description: This page shows CodeParser Class of Dynamsoft Code Parser SDK Android Edition.
5+
keywords: CodeParser, api reference, Android
6+
needAutoGenerateSidebar: true
7+
---
8+
9+
# CodeParser Class
10+
11+
The `CodeParser` class enable users to configure the code parser settings or parse the content.
12+
13+
## Definition
14+
15+
*Namespace:* com.dynamsoft.dcp
16+
17+
*Assembly:* DynamsoftCodeParser.aar
18+
19+
```java
20+
class CodeParser
21+
```
22+
23+
| Method | Description |
24+
| ------ | ----------- |
25+
| [`CodeParser`](#codeparser) | The constructor.|
26+
| [`initSettingsFromFile`](#initsettingsfromfile) | Initialize runtime settings with the settings in a given JSON file. |
27+
| [`initSettings`](#initsettings) | Initialize runtime settings with the settings in a given JSON string. |
28+
| [`parse`](#parse) | Parses code data for readable results. |
29+
| [`resetSettings`](#resetsettings) | Reset runtime settings to default. |
30+
31+
## CodeParser
32+
33+
Default constructor of a `CodeParser` object.
34+
35+
```java
36+
CodeParser();
37+
```
38+
39+
## Parse
40+
41+
Parses code data for human-readable results.
42+
43+
```java
44+
ParsedResultItem parse(byte[] bytes, String taskSettingName) throws CodeParserException;
45+
```
46+
47+
**Parameters**
48+
49+
`[in] bytes` The array of bytes which contain the code string.
50+
51+
`[in] taskSettingName`<sub>Optional</sub> The name of [`CodeParserTaskSetting`]({{site.parameters}}file/task-settings/code-parser-task-settings.html) which defines the settings used for code parsing.
52+
53+
**Return Value**
54+
55+
Returns [`ParsedResultItem`](parsed-result-item.md) which stores the human-readable results.
56+
57+
## ResetSettings
58+
59+
Reset all parameters to default values.
60+
61+
```java
62+
void resetSettings();
63+
```
64+
65+
## InitSettingsFromFile
66+
67+
Initialize settings from a given file.
68+
69+
```java
70+
void initSettingsFromFile(String filePath) throws CodeParserException;
71+
```
72+
73+
**Parameters**
74+
75+
`[in] filePath` The path of the settings file.
76+
77+
## InitSettings
78+
79+
Initialize settings from a given string.
80+
81+
```java
82+
void initSettings(String content) throws CodeParserException;
83+
```
84+
85+
**Parameters**
86+
87+
`[in] content` A JSON string that represents the content of the settings.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: default-layout
3+
title: Main Page - Dynamsoft Code Parser SDK Android Edition API Reference
4+
description: This is the main page of Dynamsoft Code Parser SDK Android Edition API Reference.
5+
keywords: api reference, Android
6+
needAutoGenerateSidebar: true
7+
needGenerateH3Content: true
8+
---
9+
10+
# API Reference - Dynamsoft Code Parser SDK Android Edition
11+
12+
## Classes
13+
14+
* [`CodeParser`](code-parser.html)
15+
* [`LicenseManager`]({{ site.dcv_cpp_api }}license/license-manager.html)
16+
* [`ParsedResultItem`](parsed-result-item.html)
17+
* [`ParsedResult`](parsed-result.html)
18+
19+
## Enumerations
20+
21+
* [`ErrorCode`]({{ site.enumerations }}core/error-code.html?lang=android)
22+
* [`MappingStatus`]({{ site.enumerations }}code-parser/mapping-status.html?lang=android)
23+
* [`ValidationStatus`]({{ site.enumerations }}code-parser/validation-status.html?lang=android)

0 commit comments

Comments
 (0)