@urovotest/urovosdk-docs-mcp 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +176 -0
  2. package/docs/00-overview.md +37 -0
  3. package/docs/01-integration/android-permissions.md +22 -0
  4. package/docs/01-integration/quickstart-zh.md +54 -0
  5. package/docs/02-reference/emv/emv-api.md +3308 -0
  6. package/docs/02-reference/emv/emv-appendix.md +112 -0
  7. package/docs/02-reference/emv/emv-callback.md +1155 -0
  8. package/docs/02-reference/emv/emv-enum.md +324 -0
  9. package/docs/02-reference/error-codes.md +59 -0
  10. package/docs/02-reference/general/beeper.md +160 -0
  11. package/docs/02-reference/general/devicemanager.md +460 -0
  12. package/docs/02-reference/general/insertcardreader.md +307 -0
  13. package/docs/02-reference/general/install-manager.md +202 -0
  14. package/docs/02-reference/general/led-light.md +144 -0
  15. package/docs/02-reference/general/magcardreader.md +191 -0
  16. package/docs/02-reference/general/pinpad.md +3309 -0
  17. package/docs/02-reference/general/printer.md +1410 -0
  18. package/docs/02-reference/general/psam2.md +55 -0
  19. package/docs/02-reference/general/rfcardreader.md +1090 -0
  20. package/docs/02-reference/general/scanner-custom.md +196 -0
  21. package/docs/02-reference/general/scanner.md +214 -0
  22. package/docs/02-reference/general/sdk-log-output-management.md +124 -0
  23. package/docs/02-reference/general/serial-port-deprecated-suggest-using-module-14-serialtool.md +406 -0
  24. package/docs/02-reference/general/serial-port.md +326 -0
  25. package/docs/02-reference/general/sle4428-4436-4442.md +1890 -0
  26. package/docs/02-reference/general/system-manager.md +212 -0
  27. package/docs/02-reference/module-index.md +30 -0
  28. package/docs/02-reference/source-emv_sdk.md +3927 -0
  29. package/docs/02-reference/source-general_sdk.md +8978 -0
  30. package/docs/02-reference/undocumented/kiosk-lock-task.md +92 -0
  31. package/docs/03-demo/activity-map.md +27 -0
  32. package/docs/api-registry.json +4733 -0
  33. package/docs/search-index.json +2688 -0
  34. package/docs/source/emv_sdk.md +3927 -0
  35. package/docs/source/general_sdk.md +8978 -0
  36. package/docs/source/kiosk_lock_task.md +86 -0
  37. package/package.json +36 -0
  38. package/src/launch.js +22 -0
  39. package/src/lib/check-update.js +92 -0
  40. package/src/lib/create-mcp-server.js +90 -0
  41. package/src/lib/docs-tools.js +206 -0
  42. package/src/server.js +10 -0
@@ -0,0 +1,196 @@
1
+ ---
2
+ title: Scanner Custom API
3
+ module: Scanner Custom
4
+ domain: general
5
+ tags: ["general", "scanner-custom", "scanner custom"]
6
+ ---
7
+ # Scanner Custom
8
+
9
+ 共 **2** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [startScan](#startscan) | `com.urovo.sdk.scanner.InnerScannerCustomImpl` | - |
16
+ | [stopScan](#stopscan) | `com.urovo.sdk.scanner.InnerScannerCustomImpl` | - |
17
+
18
+ ## startScan
19
+
20
+ Start scanning code.
21
+
22
+ ```java
23
+ void startScan(Context context, View view, Bundle bundle,
24
+ ScannerListener listener)
25
+ ```
26
+
27
+ - **类路径:** `com.urovo.sdk.scanner.InnerScannerCustomImpl`
28
+ - **源文档章节:** 7.1
29
+
30
+ - Source section: `7.1`
31
+
32
+ - Package/class path: `com.urovo.sdk.scanner.InnerScannerCustomImpl`
33
+
34
+
35
+
36
+ Purpose:
37
+ Start scanning code.
38
+
39
+
40
+ Signature/prototype:
41
+ ```java
42
+ void startScan(Context context, View view, Bundle bundle,
43
+ ScannerListener listener)
44
+ ```
45
+
46
+
47
+ Parameters:
48
+ Input
49
+ context: context.
50
+ view: layout view.
51
+ bundle : refer to com.urovo.sdk.scanner.utils.Constant.Scankey.
52
+ *cameraId(int) - 0:front, 1:back, 2:top.
53
+ (Refer to com.urovo.sdk.scanner.utils.Constant.CameraID)
54
+ *timeout(int) - time out(seconds).
55
+ codeType_disable(String[]): The code types that need to be disabled.
56
+ (Refer to com.urovo.sdk.scanner.utils.Constant.CodeType)
57
+ *codeType_disable(StringArray):
58
+ (refer to com.ubx.scanner.utils.Constant.CodeType).
59
+
60
+ listener - scanning result listener.
61
+ Output
62
+ None
63
+
64
+
65
+ Usage notes:
66
+ /**
67
+ * Scanning process listener interface definition
68
+ */
69
+ interface ScannerListener {
70
+ /**
71
+ * Code scanning successful
72
+ * @param data
73
+ * @param byData
74
+ */
75
+ void onSuccess(String data, byte[] byData);
76
+ /**
77
+ * Code scanning error
78
+ * @param error - error code
79
+ * @param message - error description
80
+ */
81
+ void onError(int error, String message);
82
+ /**
83
+ * Code scanning timeout*/
84
+ void onTimeout();
85
+ /**
86
+ * Code scanning cancel*/
87
+ void onCancel();
88
+
89
+ }
90
+
91
+
92
+ Source details:
93
+ ```text
94
+ Prototype
95
+ void startScan(Context context, View view, Bundle bundle,
96
+ ScannerListener listener)
97
+ Description
98
+ Start scanning code.
99
+ Parameters
100
+ Input
101
+ context: context.
102
+ view: layout view.
103
+ bundle : refer to com.urovo.sdk.scanner.utils.Constant.Scankey.
104
+ *cameraId(int) - 0:front, 1:back, 2:top.
105
+ (Refer to com.urovo.sdk.scanner.utils.Constant.CameraID)
106
+ *timeout(int) - time out(seconds).
107
+ codeType_disable(String[]): The code types that need to be disabled.
108
+ (Refer to com.urovo.sdk.scanner.utils.Constant.CodeType)
109
+ *codeType_disable(StringArray):
110
+ (refer to com.ubx.scanner.utils.Constant.CodeType).
111
+
112
+ listener - scanning result listener.
113
+ Output
114
+ None
115
+ Return
116
+
117
+ Remark
118
+ /**
119
+ * Scanning process listener interface definition
120
+ */
121
+ interface ScannerListener {
122
+ /**
123
+ * Code scanning successful
124
+ * @param data
125
+ * @param byData
126
+ */
127
+ void onSuccess(String data, byte[] byData);
128
+ /**
129
+ * Code scanning error
130
+ * @param error - error code
131
+ * @param message - error description
132
+ */
133
+ void onError(int error, String message);
134
+ /**
135
+ * Code scanning timeout*/
136
+ void onTimeout();
137
+ /**
138
+ * Code scanning cancel*/
139
+ void onCancel();
140
+
141
+ }
142
+ ```
143
+
144
+ ## stopScan
145
+
146
+ Stop scanning.
147
+
148
+ ```java
149
+ void stopScan()
150
+ ```
151
+
152
+ - **类路径:** `com.urovo.sdk.scanner.InnerScannerCustomImpl`
153
+ - **源文档章节:** 7.2
154
+
155
+ - Source section: `7.2`
156
+
157
+ - Package/class path: `com.urovo.sdk.scanner.InnerScannerCustomImpl`
158
+
159
+
160
+
161
+ Purpose:
162
+ Stop scanning.
163
+
164
+
165
+ Signature/prototype:
166
+ ```java
167
+ void stopScan()
168
+ ```
169
+
170
+
171
+ Parameters:
172
+ Input
173
+ None
174
+ Output
175
+ None
176
+
177
+
178
+ Return value:
179
+ None
180
+
181
+
182
+ Source details:
183
+ ```text
184
+ Prototype
185
+ void stopScan()
186
+ Description
187
+ Stop scanning.
188
+ Parameters
189
+ Input
190
+ None
191
+ Output
192
+ None
193
+ Return
194
+ None
195
+ Remark
196
+ ```
@@ -0,0 +1,214 @@
1
+ ---
2
+ title: Scanner API
3
+ module: Scanner
4
+ domain: general
5
+ tags: ["general", "scanner", "scanner"]
6
+ ---
7
+ # Scanner
8
+
9
+ 共 **2** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [startScan](#startscan) | `com.urovo.sdk.scanner.InnerScannerImpl` | ScanActivity |
16
+ | [stopScan](#stopscan) | `com.urovo.sdk.scanner.InnerScannerImpl` | ScanActivity |
17
+
18
+ ## startScan
19
+
20
+ Start scanning code.
21
+
22
+ ```java
23
+ void startScan(Context context, Bundle bundle, int cameraId, long timeout, ScannerListener listener)
24
+ ```
25
+
26
+ - **类路径:** `com.urovo.sdk.scanner.InnerScannerImpl`
27
+ - **Demo Activity(参考):** ScanActivity
28
+ - **源文档章节:** 6.1
29
+
30
+ - Source section: `6.1`
31
+
32
+ - Package/class path: `com.urovo.sdk.scanner.InnerScannerImpl`
33
+
34
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/ScanActivity.java`
35
+
36
+
37
+
38
+ Purpose:
39
+ Start scanning code.
40
+
41
+
42
+ Signature/prototype:
43
+ ```java
44
+ void startScan(Context context, Bundle bundle, int cameraId, long timeout, ScannerListener listener)
45
+ ```
46
+
47
+
48
+ Parameters:
49
+ Input
50
+ context - context.
51
+ bundle: refer to com.urovo.sdk.scanner.utils.Constant.Scankey.
52
+ *title(String).
53
+ *upPromptString(String).
54
+ *downPromptString(String).
55
+ *flash_enable(boolean).
56
+ *codeType_disable(StringArray):
57
+ (refer to com.urovo.sdk.scanner.utils.Constant.CodeType).
58
+ cameraId(int) - 0:front, 1:back, 2:top.
59
+ (Refer to com.urovo.sdk.scanner.utils.Constant.CameraID)
60
+ timeout(int) - time out(seconds).
61
+
62
+ listener - scanning result listener.
63
+ Output
64
+ None
65
+
66
+
67
+ Usage notes:
68
+ /**
69
+ * Scanning process listener interface definition
70
+ */
71
+ interface ScannerListener {
72
+ /**
73
+ * Code scanning successful
74
+ * @param data
75
+ * @param byData
76
+ */
77
+ void onSuccess(String data, byte[] byData);
78
+ /**
79
+ * Code scanning error
80
+ * @param error - error code
81
+ * @param message - error description
82
+ */
83
+ void onError(int error, String message);
84
+ /**
85
+ * Code scanning timeout*/
86
+ void onTimeout();
87
+ /**
88
+ * Code scanning cancel*/
89
+ void onCancel();
90
+
91
+ }
92
+
93
+
94
+ Simplified example:
95
+ ```java
96
+ Bundle options = new Bundle();
97
+ InnerScannerImpl.getInstance(context).startScan(context, options, 0, 30, listener);
98
+ ```
99
+
100
+
101
+ Source details:
102
+ ```text
103
+ Prototype
104
+ void startScan(Context context, Bundle bundle, int cameraId, long timeout, ScannerListener listener)
105
+ Description
106
+ Start scanning code.
107
+ Parameters
108
+ Input
109
+ context - context.
110
+ bundle: refer to com.urovo.sdk.scanner.utils.Constant.Scankey.
111
+ *title(String).
112
+ *upPromptString(String).
113
+ *downPromptString(String).
114
+ *flash_enable(boolean).
115
+ *codeType_disable(StringArray):
116
+ (refer to com.urovo.sdk.scanner.utils.Constant.CodeType).
117
+ cameraId(int) - 0:front, 1:back, 2:top.
118
+ (Refer to com.urovo.sdk.scanner.utils.Constant.CameraID)
119
+ timeout(int) - time out(seconds).
120
+
121
+ listener - scanning result listener.
122
+ Output
123
+ None
124
+ Return
125
+
126
+ Remark
127
+ /**
128
+ * Scanning process listener interface definition
129
+ */
130
+ interface ScannerListener {
131
+ /**
132
+ * Code scanning successful
133
+ * @param data
134
+ * @param byData
135
+ */
136
+ void onSuccess(String data, byte[] byData);
137
+ /**
138
+ * Code scanning error
139
+ * @param error - error code
140
+ * @param message - error description
141
+ */
142
+ void onError(int error, String message);
143
+ /**
144
+ * Code scanning timeout*/
145
+ void onTimeout();
146
+ /**
147
+ * Code scanning cancel*/
148
+ void onCancel();
149
+
150
+ }
151
+ ```
152
+
153
+ ## stopScan
154
+
155
+ Stop scanning.
156
+
157
+ ```java
158
+ void stopScan()
159
+ ```
160
+
161
+ - **类路径:** `com.urovo.sdk.scanner.InnerScannerImpl`
162
+ - **Demo Activity(参考):** ScanActivity
163
+ - **源文档章节:** 6.2
164
+
165
+ - Source section: `6.2`
166
+
167
+ - Package/class path: `com.urovo.sdk.scanner.InnerScannerImpl`
168
+
169
+ - Demo reference: `UrovoPosSdkDemo/app/src/main/java/com/urovo/sdk/view/ScanActivity.java`
170
+
171
+
172
+
173
+ Purpose:
174
+ Stop scanning.
175
+
176
+
177
+ Signature/prototype:
178
+ ```java
179
+ void stopScan()
180
+ ```
181
+
182
+
183
+ Parameters:
184
+ Input
185
+ None
186
+ Output
187
+ None
188
+
189
+
190
+ Return value:
191
+ None
192
+
193
+
194
+ Simplified example:
195
+ ```java
196
+ InnerScannerImpl.getInstance(context).stopScan();
197
+ ```
198
+
199
+
200
+ Source details:
201
+ ```text
202
+ Prototype
203
+ void stopScan()
204
+ Description
205
+ Stop scanning.
206
+ Parameters
207
+ Input
208
+ None
209
+ Output
210
+ None
211
+ Return
212
+ None
213
+ Remark
214
+ ```
@@ -0,0 +1,124 @@
1
+ ---
2
+ title: SDK log output management. API
3
+ module: SDK log output management.
4
+ domain: general
5
+ tags: ["general", "sdk-log-output-management", "sdk log output management."]
6
+ ---
7
+ # SDK log output management.
8
+
9
+ 共 **6** 个 API/条目,来源 `general_sdk.md`。
10
+
11
+ ## API 索引
12
+
13
+ | 方法 | 类路径 | Demo Activity |
14
+ |------|--------|---------------|
15
+ | [Enable/Disable logcat.](#enable-disable-logcat) | `-` | - |
16
+ | [Enable/Disable log file storage.](#enable-disable-log-file-storage) | `-` | - |
17
+ | [Enable/Disable Pinpad module log.](#enable-disable-pinpad-module-log) | `-` | - |
18
+ | [Enable/Disable EMV module log.](#enable-disable-emv-module-log) | `-` | - |
19
+ | [logoutEnable.](#logoutenable) | `-` | - |
20
+ | [exportLogFilesToExternalStorage.](#exportlogfilestoexternalstorage) | `-` | - |
21
+
22
+ ## Enable/Disable logcat.
23
+
24
+ - **源文档章节:** 15.1
25
+
26
+ - Source section: `15.1`
27
+
28
+
29
+
30
+ Purpose:
31
+ logfile.setLogcatOut(boolean logcatOut);
32
+
33
+
34
+ Source details:
35
+ ```text
36
+ logfile.setLogcatOut(boolean logcatOut);
37
+ ```
38
+
39
+ ## Enable/Disable log file storage.
40
+
41
+ - **源文档章节:** 15.2
42
+
43
+ - Source section: `15.2`
44
+
45
+
46
+
47
+ Purpose:
48
+ //path:sdcard/urovosdkLibs/Log/
49
+
50
+
51
+ Source details:
52
+ ```text
53
+ //path:sdcard/urovosdkLibs/Log/
54
+ logfile.setLogFileOut(boolean logFileOut);
55
+ ```
56
+
57
+ ## Enable/Disable Pinpad module log.
58
+
59
+ - **源文档章节:** 15.3
60
+
61
+ - Source section: `15.3`
62
+
63
+
64
+
65
+ Purpose:
66
+ PinPadProviderImpl.getInstance().LogOutEnable(boolean LogOutEnable);
67
+
68
+
69
+ Source details:
70
+ ```text
71
+ PinPadProviderImpl.getInstance().LogOutEnable(boolean LogOutEnable);
72
+ ```
73
+
74
+ ## Enable/Disable EMV module log.
75
+
76
+ - **源文档章节:** 15.4
77
+
78
+ - Source section: `15.4`
79
+
80
+
81
+
82
+ Purpose:
83
+ //if sdk version >= V1.0.22, the log path is : data/data/packageName/files/UROPE, else the log path is: sdcard/UROPE/.
84
+
85
+
86
+ Source details:
87
+ ```text
88
+ //if sdk version >= V1.0.22, the log path is : data/data/packageName/files/UROPE, else the log path is: sdcard/UROPE/.
89
+ ```
90
+
91
+ ## logoutEnable.
92
+
93
+ - **源文档章节:** 15.4.1
94
+
95
+ - Source section: `15.4.1`
96
+
97
+
98
+
99
+ Purpose:
100
+ EmvNfcKernelApi.getInstance(this).LogOutEnable(int enable): //1-enable, 0-disable.
101
+
102
+
103
+ Source details:
104
+ ```text
105
+ EmvNfcKernelApi.getInstance(this).LogOutEnable(int enable): //1-enable, 0-disable.
106
+ ```
107
+
108
+ ## exportLogFilesToExternalStorage.
109
+
110
+ - **源文档章节:** 15.4.2
111
+
112
+ - Source section: `15.4.2`
113
+
114
+
115
+
116
+ Purpose:
117
+ //if sdk version >= V1.0.22, need to call the below function before pulling log file:
118
+
119
+
120
+ Source details:
121
+ ```text
122
+ //if sdk version >= V1.0.22, need to call the below function before pulling log file:
123
+ EmvNfcKernelApi.exportLogFilesToExternalStorage(Context context).
124
+ ```