capacitor-plugin-ihealth 1.1.0

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 (178) hide show
  1. package/CapacitorPluginIhealth.podspec +35 -0
  2. package/README.md +214 -0
  3. package/android/build.gradle +58 -0
  4. package/android/src/main/AndroidManifest.xml +2 -0
  5. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealth.java +11 -0
  6. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealthPlugin.java +22 -0
  7. package/android/src/main/res/.gitkeep +0 -0
  8. package/dist/docs.json +450 -0
  9. package/dist/esm/definitions.d.ts +29 -0
  10. package/dist/esm/definitions.js +2 -0
  11. package/dist/esm/definitions.js.map +1 -0
  12. package/dist/esm/index.d.ts +4 -0
  13. package/dist/esm/index.js +7 -0
  14. package/dist/esm/index.js.map +1 -0
  15. package/dist/esm/web.d.ts +37 -0
  16. package/dist/esm/web.js +42 -0
  17. package/dist/esm/web.js.map +1 -0
  18. package/dist/plugin.cjs.js +58 -0
  19. package/dist/plugin.cjs.js.map +1 -0
  20. package/dist/plugin.js +61 -0
  21. package/dist/plugin.js.map +1 -0
  22. package/ios/Plugin/Info.plist +24 -0
  23. package/ios/Plugin/Plugin-Bridging-Header.h +35 -0
  24. package/ios/Plugin/iHealthSDKHeaders/ABI.h +82 -0
  25. package/ios/Plugin/iHealthSDKHeaders/ABIController.h +28 -0
  26. package/ios/Plugin/iHealthSDKHeaders/ABPM.h +144 -0
  27. package/ios/Plugin/iHealthSDKHeaders/ABPMController.h +25 -0
  28. package/ios/Plugin/iHealthSDKHeaders/AM3.h +188 -0
  29. package/ios/Plugin/iHealthSDKHeaders/AM3Controller.h +29 -0
  30. package/ios/Plugin/iHealthSDKHeaders/AM3SController_V2.h +29 -0
  31. package/ios/Plugin/iHealthSDKHeaders/AM3S_V2.h +227 -0
  32. package/ios/Plugin/iHealthSDKHeaders/AM4.h +223 -0
  33. package/ios/Plugin/iHealthSDKHeaders/AM4Controller.h +31 -0
  34. package/ios/Plugin/iHealthSDKHeaders/AM5.h +335 -0
  35. package/ios/Plugin/iHealthSDKHeaders/AM5Controller.h +30 -0
  36. package/ios/Plugin/iHealthSDKHeaders/AM5Header.h +20 -0
  37. package/ios/Plugin/iHealthSDKHeaders/AMHeader.h +27 -0
  38. package/ios/Plugin/iHealthSDKHeaders/AMMacroFile.h +1171 -0
  39. package/ios/Plugin/iHealthSDKHeaders/BG1.h +53 -0
  40. package/ios/Plugin/iHealthSDKHeaders/BG1Controller.h +46 -0
  41. package/ios/Plugin/iHealthSDKHeaders/BG1S.h +64 -0
  42. package/ios/Plugin/iHealthSDKHeaders/BG1SController.h +25 -0
  43. package/ios/Plugin/iHealthSDKHeaders/BG3.h +83 -0
  44. package/ios/Plugin/iHealthSDKHeaders/BG3Controller.h +28 -0
  45. package/ios/Plugin/iHealthSDKHeaders/BG5.h +158 -0
  46. package/ios/Plugin/iHealthSDKHeaders/BG5Controller.h +28 -0
  47. package/ios/Plugin/iHealthSDKHeaders/BG5S.h +294 -0
  48. package/ios/Plugin/iHealthSDKHeaders/BG5SController.h +29 -0
  49. package/ios/Plugin/iHealthSDKHeaders/BGController.h +32 -0
  50. package/ios/Plugin/iHealthSDKHeaders/BGDevice.h +42 -0
  51. package/ios/Plugin/iHealthSDKHeaders/BGHeader.h +23 -0
  52. package/ios/Plugin/iHealthSDKHeaders/BGMacroFile.h +507 -0
  53. package/ios/Plugin/iHealthSDKHeaders/BP3.h +77 -0
  54. package/ios/Plugin/iHealthSDKHeaders/BP3Controller.h +27 -0
  55. package/ios/Plugin/iHealthSDKHeaders/BP3L.h +58 -0
  56. package/ios/Plugin/iHealthSDKHeaders/BP3LController.h +30 -0
  57. package/ios/Plugin/iHealthSDKHeaders/BP5.h +32 -0
  58. package/ios/Plugin/iHealthSDKHeaders/BP5C.h +131 -0
  59. package/ios/Plugin/iHealthSDKHeaders/BP5CController.h +25 -0
  60. package/ios/Plugin/iHealthSDKHeaders/BP5Controller.h +25 -0
  61. package/ios/Plugin/iHealthSDKHeaders/BP5S.h +97 -0
  62. package/ios/Plugin/iHealthSDKHeaders/BP5SController.h +27 -0
  63. package/ios/Plugin/iHealthSDKHeaders/BP5SRW.h +101 -0
  64. package/ios/Plugin/iHealthSDKHeaders/BP5SRWController.h +26 -0
  65. package/ios/Plugin/iHealthSDKHeaders/BP7.h +141 -0
  66. package/ios/Plugin/iHealthSDKHeaders/BP7Controller.h +25 -0
  67. package/ios/Plugin/iHealthSDKHeaders/BP7S.h +106 -0
  68. package/ios/Plugin/iHealthSDKHeaders/BP7SController.h +32 -0
  69. package/ios/Plugin/iHealthSDKHeaders/BPAV10Device.h +15 -0
  70. package/ios/Plugin/iHealthSDKHeaders/BPBTLEDevice.h +17 -0
  71. package/ios/Plugin/iHealthSDKHeaders/BPBV10Device.h +20 -0
  72. package/ios/Plugin/iHealthSDKHeaders/BPContinua.h +56 -0
  73. package/ios/Plugin/iHealthSDKHeaders/BPContinuaController.h +30 -0
  74. package/ios/Plugin/iHealthSDKHeaders/BPController.h +40 -0
  75. package/ios/Plugin/iHealthSDKHeaders/BPDevice.h +131 -0
  76. package/ios/Plugin/iHealthSDKHeaders/BPHeader.h +54 -0
  77. package/ios/Plugin/iHealthSDKHeaders/BPLoopMeasureSettingModel.h +120 -0
  78. package/ios/Plugin/iHealthSDKHeaders/BPM1AE.h +80 -0
  79. package/ios/Plugin/iHealthSDKHeaders/BPMacroFile.h +247 -0
  80. package/ios/Plugin/iHealthSDKHeaders/BPV24Device.h +16 -0
  81. package/ios/Plugin/iHealthSDKHeaders/BPV25Device.h +17 -0
  82. package/ios/Plugin/iHealthSDKHeaders/ConnectDeviceController.h +27 -0
  83. package/ios/Plugin/iHealthSDKHeaders/DFUController.h +160 -0
  84. package/ios/Plugin/iHealthSDKHeaders/DFUDeviceFirmwareInfo.h +56 -0
  85. package/ios/Plugin/iHealthSDKHeaders/DFUHeader.h +19 -0
  86. package/ios/Plugin/iHealthSDKHeaders/DFUMacro.h +264 -0
  87. package/ios/Plugin/iHealthSDKHeaders/DFUServerFirmwareInfo.h +48 -0
  88. package/ios/Plugin/iHealthSDKHeaders/ECG3.h +94 -0
  89. package/ios/Plugin/iHealthSDKHeaders/ECG3Controller.h +30 -0
  90. package/ios/Plugin/iHealthSDKHeaders/ECG3USB.h +145 -0
  91. package/ios/Plugin/iHealthSDKHeaders/ECG3USBController.h +31 -0
  92. package/ios/Plugin/iHealthSDKHeaders/ECGHeader.h +20 -0
  93. package/ios/Plugin/iHealthSDKHeaders/ECGMacroFile.h +84 -0
  94. package/ios/Plugin/iHealthSDKHeaders/HFSmartLink.h +88 -0
  95. package/ios/Plugin/iHealthSDKHeaders/HFSmartLinkDeviceInfo.h +14 -0
  96. package/ios/Plugin/iHealthSDKHeaders/HS2.h +64 -0
  97. package/ios/Plugin/iHealthSDKHeaders/HS2Controller.h +25 -0
  98. package/ios/Plugin/iHealthSDKHeaders/HS2S.h +399 -0
  99. package/ios/Plugin/iHealthSDKHeaders/HS2SController.h +27 -0
  100. package/ios/Plugin/iHealthSDKHeaders/HS3.h +63 -0
  101. package/ios/Plugin/iHealthSDKHeaders/HS3Controller.h +32 -0
  102. package/ios/Plugin/iHealthSDKHeaders/HS4.h +64 -0
  103. package/ios/Plugin/iHealthSDKHeaders/HS4Controller.h +26 -0
  104. package/ios/Plugin/iHealthSDKHeaders/HS5.h +141 -0
  105. package/ios/Plugin/iHealthSDKHeaders/HS5Controller.h +38 -0
  106. package/ios/Plugin/iHealthSDKHeaders/HSHeader.h +25 -0
  107. package/ios/Plugin/iHealthSDKHeaders/HSMacroFile.h +709 -0
  108. package/ios/Plugin/iHealthSDKHeaders/HealthHeader.h +67 -0
  109. package/ios/Plugin/iHealthSDKHeaders/HealthUser.h +126 -0
  110. package/ios/Plugin/iHealthSDKHeaders/IDOBindEnum.h +49 -0
  111. package/ios/Plugin/iHealthSDKHeaders/IDOBlueDataResponse.h +66 -0
  112. package/ios/Plugin/iHealthSDKHeaders/IDOBlueEnum.h +213 -0
  113. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothBaseModel.h +112 -0
  114. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothEngine.h +283 -0
  115. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothManager.h +166 -0
  116. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothServices.h +75 -0
  117. package/ios/Plugin/iHealthSDKHeaders/IDOCalculateBluetoothModel.h +263 -0
  118. package/ios/Plugin/iHealthSDKHeaders/IDOCommonMacro.h +89 -0
  119. package/ios/Plugin/iHealthSDKHeaders/IDODataExchangeModel.h +128 -0
  120. package/ios/Plugin/iHealthSDKHeaders/IDODataMigrationManager.h +79 -0
  121. package/ios/Plugin/iHealthSDKHeaders/IDOErrorCodeToStr.h +19 -0
  122. package/ios/Plugin/iHealthSDKHeaders/IDOFoundationCommand.h +1178 -0
  123. package/ios/Plugin/iHealthSDKHeaders/IDOGetInfoBluetoothModel.h +1924 -0
  124. package/ios/Plugin/iHealthSDKHeaders/IDOLogEnum.h +165 -0
  125. package/ios/Plugin/iHealthSDKHeaders/IDOPeripheralModel.h +59 -0
  126. package/ios/Plugin/iHealthSDKHeaders/IDORecordDeviceLog.h +56 -0
  127. package/ios/Plugin/iHealthSDKHeaders/IDOSetInfoBluetoothModel.h +1760 -0
  128. package/ios/Plugin/iHealthSDKHeaders/IDOSyncActivityDataModel.h +207 -0
  129. package/ios/Plugin/iHealthSDKHeaders/IDOSyncBpDataModel.h +191 -0
  130. package/ios/Plugin/iHealthSDKHeaders/IDOSyncEnum.h +316 -0
  131. package/ios/Plugin/iHealthSDKHeaders/IDOSyncGpsDataModel.h +133 -0
  132. package/ios/Plugin/iHealthSDKHeaders/IDOSyncHeartRateDataModel.h +442 -0
  133. package/ios/Plugin/iHealthSDKHeaders/IDOSyncManager.h +161 -0
  134. package/ios/Plugin/iHealthSDKHeaders/IDOSyncPressureDataModel.h +158 -0
  135. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSleepDataModel.h +224 -0
  136. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSpo2DataModel.h +175 -0
  137. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSportDataModel.h +221 -0
  138. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSwimDataModel.h +188 -0
  139. package/ios/Plugin/iHealthSDKHeaders/IDOTranEnum.h +93 -0
  140. package/ios/Plugin/iHealthSDKHeaders/IDOTransferFileManager.h +116 -0
  141. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialInfoModel.h +95 -0
  142. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialManager.h +75 -0
  143. package/ios/Plugin/iHealthSDKHeaders/IDOWeightBluetoothModel.h +124 -0
  144. package/ios/Plugin/iHealthSDKHeaders/IHSDKCloudUser.h +104 -0
  145. package/ios/Plugin/iHealthSDKHeaders/KN550BT.h +115 -0
  146. package/ios/Plugin/iHealthSDKHeaders/KN550BTController.h +32 -0
  147. package/ios/Plugin/iHealthSDKHeaders/ManageDeviceController.h +34 -0
  148. package/ios/Plugin/iHealthSDKHeaders/NT13B.h +33 -0
  149. package/ios/Plugin/iHealthSDKHeaders/NT13BController.h +28 -0
  150. package/ios/Plugin/iHealthSDKHeaders/NT13BHeader.h +16 -0
  151. package/ios/Plugin/iHealthSDKHeaders/NT13BMacroFile.h +34 -0
  152. package/ios/Plugin/iHealthSDKHeaders/PO1.h +82 -0
  153. package/ios/Plugin/iHealthSDKHeaders/PO1Controller.h +29 -0
  154. package/ios/Plugin/iHealthSDKHeaders/PO3.h +96 -0
  155. package/ios/Plugin/iHealthSDKHeaders/PO3Controller.h +29 -0
  156. package/ios/Plugin/iHealthSDKHeaders/POHeader.h +20 -0
  157. package/ios/Plugin/iHealthSDKHeaders/POMacroFile.h +142 -0
  158. package/ios/Plugin/iHealthSDKHeaders/PT3SBT.h +167 -0
  159. package/ios/Plugin/iHealthSDKHeaders/PT3SBTController.h +27 -0
  160. package/ios/Plugin/iHealthSDKHeaders/PT3SBTMacroFile.h +92 -0
  161. package/ios/Plugin/iHealthSDKHeaders/SDKFlowUpdateDevice.h +196 -0
  162. package/ios/Plugin/iHealthSDKHeaders/SDKInfo.h +30 -0
  163. package/ios/Plugin/iHealthSDKHeaders/SDKUpdateDevice.h +235 -0
  164. package/ios/Plugin/iHealthSDKHeaders/ScanDeviceController.h +47 -0
  165. package/ios/Plugin/iHealthSDKHeaders/THV3.h +104 -0
  166. package/ios/Plugin/iHealthSDKHeaders/THV3Controller.h +30 -0
  167. package/ios/Plugin/iHealthSDKHeaders/THV3Macro.h +17 -0
  168. package/ios/Plugin/iHealthSDKHeaders/TS28B.h +26 -0
  169. package/ios/Plugin/iHealthSDKHeaders/TS28BController.h +142 -0
  170. package/ios/Plugin/iHealthSDKHeaders/TS28BHeader.h +15 -0
  171. package/ios/Plugin/iHealthSDKHeaders/iHealthHS6.h +174 -0
  172. package/ios/Plugin/ihealth.swift +8 -0
  173. package/ios/Plugin/ihealthPlugin.h +10 -0
  174. package/ios/Plugin/ihealthPlugin.m +16 -0
  175. package/ios/Plugin/ihealthPlugin.swift +1502 -0
  176. package/ios/Plugin/libiHealthSDK2.7.8.a +0 -0
  177. package/ios/Plugin/test.m +9 -0
  178. package/package.json +78 -0
@@ -0,0 +1,709 @@
1
+ //
2
+ // HSMacroFile.h
3
+ // HSDemoCode
4
+ //
5
+ // Created by zhiwei jing on 14-7-23.
6
+ // Copyright (c) 2014年 zhiwei jing. All rights reserved.
7
+ //
8
+
9
+ #import "HealthUser.h"
10
+
11
+ #ifndef HSDemoCode_HSMacroFile_h
12
+ #define HSDemoCode_HSMacroFile_h
13
+
14
+ #define RecordLength 16
15
+
16
+
17
+
18
+ /**
19
+ HS2 Device Error Code
20
+ */
21
+ typedef NS_ENUM(NSInteger,HS2DeviceError){
22
+ /// Battery level is low
23
+ HS2DeviceLowPower = 1,
24
+ /// The Scale failed to initialize
25
+ HS2DeviceEr0 = 2,
26
+ /// Maximum weight has been exceeded
27
+ HS2DeviceEr1 = 3,
28
+ /// The Scale can't capture a steady reading
29
+ HS2DeviceEr2 = 4,
30
+ /// Bluetooth connection error
31
+ HS2DeviceEr4 = 5,
32
+ /// Movement while measuring
33
+ HS2DeviceEr7 = 6,
34
+ ///Invalidate
35
+ HS2DeviceEr8 = 7,
36
+ /// Scale memory access error
37
+ HS2DeviceEr9 = 8,
38
+ /// No memory 9
39
+ HS2DataZeor = 9,
40
+ ///Device disconnect
41
+ HS2DeviceDisconnect = 10,
42
+ /// Communication error
43
+ HS2DeviceSendTimeout = 11,
44
+ /// DeviceRecWeightError
45
+ HS2DeviceRecWeightError = 12,
46
+ };
47
+ /**
48
+ HS2S Device Error Code
49
+ */
50
+ typedef NS_ENUM(int, HS2SDeviceError) {
51
+ HS2SDeviceError_Unknown = -1,// device send wrong error code
52
+ HS2SDeviceError_CommunicationTimeout = 0,
53
+ HS2SDeviceError_ReceivedCommandError,
54
+ HS2SDeviceError_InputParameterError,
55
+ HS2SDeviceError_MoreThanMaxNumbersOfUser,
56
+ HS2SDeviceError_WriteFlashError,
57
+ HS2SDeviceError_UserNotExist,
58
+ HS2SDeviceError_StartMeasureError,
59
+ HS2SDeviceError_MeasureTimeout,
60
+ HS2SDeviceError_MeasureOverweight,
61
+ HS2SDeviceError_Disconnect,
62
+ HS2SDeviceError_Unsupported,
63
+ };
64
+
65
+
66
+ /**
67
+ HS3 Device Error Code
68
+ */
69
+ typedef NS_ENUM(NSInteger,HS3DeviceError){
70
+ /// Low battery
71
+ HS3DeviceLowPower = 1,
72
+ /// Weight capacity is exceeded
73
+ HS3DeviceEr2 = 2,
74
+ /// The Scale calibration error
75
+ HS3DeviceEr4 = 3,
76
+ /// Movement while measuring
77
+ HS3DeviceEr7 = 4,
78
+ /// No memory
79
+ HS3DataZeor = 5, //No memory
80
+ /// Device disconnect
81
+ HS3DeviceDisconnect = 6,
82
+ /// Communication error
83
+ HS3DeviceSendTimeout = 7,
84
+ };
85
+
86
+
87
+ /**
88
+ HS4 Device Error Code
89
+ */
90
+ typedef NS_ENUM(NSInteger,HS4DeviceError){
91
+ /// Battery level is low
92
+ HS4DeviceLowPower = 1, // Battery level is low
93
+ /// The Scale failed to initialize
94
+ HS4DeviceEr0 = 2,
95
+ /// Maximum weight has been exceeded
96
+ HS4DeviceEr1 = 3,
97
+ /// The Scale can't capture a steady reading
98
+ HS4DeviceEr2 = 4,
99
+ /// Bluetooth connection error
100
+ HS4DeviceEr4 = 5,
101
+ /// Movement while measuring
102
+ HS4DeviceEr7 = 6,
103
+ /// Invalidate
104
+ HS4DeviceEr8 = 7,
105
+ /// Scale memory access error
106
+ HS4DeviceEr9 = 8,
107
+ /// No memory
108
+ HS4DataZeor = 9 ,
109
+ /// Device disconnect
110
+ HS4DeviceDisconnect = 10,
111
+ /// Communication error
112
+ HS4DeviceSendTimeout = 11, // Communication error
113
+ /// Device Recive Weight Error
114
+ HS4DeviceRecWeightError = 12,
115
+ };
116
+
117
+ /**
118
+ HS5 error
119
+ */
120
+ typedef NS_ENUM(NSInteger,HS5DeviceError){
121
+ /// Communication error
122
+ IHSCOverTimeError = 0,
123
+ /// Communication Error
124
+ IHSCUserInScale=5,
125
+ /// Make sure batteries are installed correctly, if the problem persists, replace with a new set of batteries.
126
+ IHSCLowPower=6,
127
+ /// Remove the batteries, wait 1 minute and then replace with a new set of batteries.
128
+ IHSCScaleEr0=7,
129
+ /// The current weight may be beyond the measurement range of 330 lbs/150 kg.
130
+ IHSCScaleEr1=8,
131
+ /// Stand still on all four electrodes with bare feet.
132
+ IHSCScaleEr2=9,
133
+ /// Communication Error
134
+ IHSCScaleEr7=10,
135
+ /// Communication Error
136
+ IHSCScaleEr8=11,
137
+ /// Communication Error
138
+ IHSCScaleEr9=12,
139
+ /// Scale is busy
140
+ IHScaleBusy=13,
141
+ /// No memory
142
+ HS5DataZeor=14,// No memory
143
+ /// Scale Create User Test Error
144
+ IHSCScaleCreateUserTestError = 15,
145
+ /// Device disconnect
146
+ HS5Disconnect = 16,
147
+ /// User verify error
148
+ HS5UserInvalidate = 400
149
+ };
150
+
151
+ //HS6 Unit
152
+
153
+ /**
154
+ HS6 Unit
155
+
156
+ */
157
+ typedef NS_ENUM(NSInteger,IHHS6SDKUnitWeight){
158
+ /// kg
159
+ IHHS6SDKUnitWeight_kg = 0,
160
+ /// lb
161
+ IHHS6SDKUnitWeight_lbs,
162
+ /// st
163
+ IHHS6SDKUnitWeight_oz,
164
+ };
165
+
166
+ #pragma mark HS2 Block
167
+
168
+ /**
169
+ Result
170
+
171
+ @param resetSuc reset Success
172
+ */
173
+ typedef void (^DisposeHS2Result)(BOOL resetSuc);
174
+
175
+ /**
176
+ HS4 error
177
+
178
+ @param errorID error number
179
+ */
180
+ typedef void (^DisposeHS2ErrorBlock)(HS2DeviceError errorID);
181
+
182
+
183
+ /**
184
+ Start transfer Memory Dictionary(5)
185
+
186
+ @param startDataDictionary Memory Data Dictionary
187
+ */
188
+ typedef void (^StartHS2Transmission)(NSDictionary *startDataDictionary);
189
+
190
+ /**
191
+ Memory transmission progress
192
+
193
+ @param progress progress 0.0~1.0.
194
+ */
195
+ typedef void (^DisposeHS2Progress)(NSNumber *progress);
196
+ //data including weight (kg), measurement time,coordinated key:weight,date.
197
+
198
+ /**
199
+ historyDataArray including weight (kg), measurement time,coordinated key:weight,date.
200
+
201
+ @param historyDataArray historyDataArray
202
+ */
203
+ typedef void (^HS2MemorryData)(NSArray *historyDataArray);
204
+
205
+ /**
206
+ Finish memory transmission.
207
+ */
208
+ typedef void (^FinishHS2Transmission)(void);
209
+ //Current weight, (Kg)
210
+
211
+ /**
212
+ Current unstable weight, (Kg)
213
+
214
+ @param unStableWeight unStableWeight
215
+ */
216
+ typedef void (^HS2UnStableWeight)(NSNumber *unStableWeight);
217
+ //Stable weight, (Kg)
218
+
219
+ /**
220
+ StableWeightDictionary including stableweight(kg),time,dataID
221
+
222
+ @param StableWeightDic StableWeightDictionary
223
+ */
224
+ typedef void (^HS2StableWeight)(NSDictionary *StableWeightDic);
225
+
226
+ /**
227
+ DisposeSendHS2DataBlock
228
+ */
229
+ typedef void (^DisposeSendHS2DataBlock)(void);
230
+
231
+ /**
232
+ HS2 battery
233
+
234
+ @param battary battery
235
+ */
236
+ typedef void (^DisposeHS2BatteryBlock)(NSNumber *battary);
237
+
238
+
239
+ #pragma mark HS3 Block
240
+ /**
241
+ deviceID
242
+
243
+ @param weightID deviceID
244
+ */
245
+ typedef void(^WeightID)(NSString *weightID);
246
+ //HS3Error
247
+
248
+ /**
249
+ HS3 Device Error
250
+
251
+ @param errorID errorID
252
+ */
253
+ typedef void (^DisposeHS3ErrorBlock)(HS3DeviceError errorID);
254
+
255
+ /**
256
+ Memory Number,0~200.
257
+
258
+ @param uploadDataNum Memory Number
259
+ */
260
+ typedef void (^DisposeHS3UploadDataNum)(NSNumber *uploadDataNum);
261
+
262
+ /**
263
+ Memory transmission progress,0.0~1.0.
264
+
265
+ @param progress Transmission progress
266
+ */
267
+ typedef void (^DisposeHS3Progress)(float progress);
268
+
269
+ /**
270
+ historyData including weight(kg), measure time,coordinated key:weight、date.
271
+
272
+ @param historyDataDic historyDataDictionary
273
+ */
274
+ typedef void (^HS3MemorryData)(NSDictionary *historyDataDic);
275
+ //Start transmission
276
+
277
+ /**
278
+ Start transmission
279
+
280
+ @param startTransmission YES or NO
281
+ */
282
+ typedef void (^StartHS3Transmission)(BOOL startTransmission);
283
+
284
+ /**
285
+ Finish memory transmission.
286
+ */
287
+ typedef void (^FinishHS3Transmission)(void);
288
+
289
+ /**
290
+ Stable weight (Kg)
291
+
292
+ @param StableWeightDic StableWeightNSDictionary
293
+ */
294
+ typedef void (^StableHS3Weight)(NSDictionary *StableWeightDic);
295
+
296
+ /**
297
+ FinishHS3Init
298
+ */
299
+ typedef void (^FinishHS3Init)(void);
300
+
301
+ /**
302
+ DisposeResult
303
+
304
+ @param resetSuc YES or NO
305
+ */
306
+ typedef void (^DisposeResult)(BOOL resetSuc);
307
+
308
+
309
+ #pragma mark HS4 Block
310
+ /**
311
+ DisposeResult
312
+
313
+ @param resetSuc YES or NO
314
+ */
315
+ typedef void (^DisposeResult)(BOOL resetSuc);
316
+
317
+ /**
318
+ HS4 error
319
+
320
+ @param errorID errorID
321
+ */
322
+ typedef void (^DisposeHS4ErrorBlock)(HS4DeviceError errorID);
323
+
324
+ /**
325
+ Start Memory transmission
326
+
327
+ @param startDataDictionary startDataDictionary
328
+ */
329
+ typedef void (^StartHS4Transmission)(NSDictionary *startDataDictionary);
330
+
331
+ /**
332
+ Memory transmission progress,0.0~1.0.
333
+
334
+ @param progress progress
335
+ */
336
+ typedef void (^DisposeProgress)(NSNumber *progress);
337
+
338
+ /**
339
+ historyDataArray data including weight (kg), measurement time,coordinated key:weight,date.
340
+
341
+ @param historyDataArray historyDataArray
342
+ */
343
+ typedef void (^MemorryData)(NSArray *historyDataArray);
344
+
345
+ /**
346
+ Finish memory transmission.
347
+ */
348
+ typedef void (^FinishHS4Transmission)(void);
349
+
350
+ /**
351
+ Current unstableweight, (Kg)
352
+
353
+ @param unStableWeight unStableWeight
354
+ */
355
+ typedef void (^UnStableWeight)(NSNumber *unStableWeight);
356
+
357
+ /**
358
+ Stable weight,(Kg)
359
+
360
+ @param StableWeightDic StableWeightDictionary
361
+ */
362
+ typedef void (^StableWeight)(NSDictionary *StableWeightDic);
363
+
364
+ /**
365
+ SendHS4DataBlock
366
+ */
367
+ typedef void (^DisposeSendHS4DataBlock)(void);
368
+
369
+
370
+ #pragma mark HS5 Block
371
+
372
+ /**
373
+ Existing user info in HS5,including serialNub、Position of users. Related key: serialNumber、position
374
+
375
+ @param userListDataArray userListDataArray
376
+ */
377
+ typedef void (^MemorryUserListHS5Data)(NSArray *userListDataArray);
378
+
379
+ /**
380
+ HS5 result
381
+
382
+ @param resetSuc reset success
383
+ */
384
+ typedef void (^DisposeHS5Result)(BOOL resetSuc);
385
+
386
+ /**
387
+ HS5 error
388
+
389
+ @param errorID errorID
390
+ */
391
+ typedef void (^DisposeHS5ErrorBlock)(HS5DeviceError errorID);
392
+
393
+ /**
394
+ Start memory transmission.
395
+
396
+ @param startHS5Transmission startHS5Transmission
397
+ */
398
+ typedef void (^StartHS5Transmission)(BOOL startHS5Transmission);
399
+
400
+ /**
401
+ progress: Memory transmission progress,0.0~1.0.
402
+
403
+ @param progress progress
404
+ */
405
+ typedef void (^DisposeHS5Progress)(NSNumber *progress);
406
+
407
+ /**
408
+ Record data,More details and key refer Measure API. Additionally add time-measure property, related key: date.
409
+
410
+ @param historyDataDic historyDataDictionary
411
+ */
412
+ typedef void (^MemorryHS5Data)(NSDictionary *historyDataDic);
413
+
414
+ /**
415
+ Finish Memory Transmission
416
+
417
+ @param finishHS5Transmission YES or NO
418
+ */
419
+ typedef void (^FinishHS5Transmission)(BOOL finishHS5Transmission);
420
+
421
+ /**
422
+ Current unstableweight, (kg)
423
+
424
+ @param unStableWeight unStableWeight
425
+ */
426
+ typedef void (^UnStableHS5Weight)(NSNumber *unStableWeight);
427
+
428
+ /**
429
+ Stable weight, (kg)
430
+
431
+ @param StableWeight StableWeight
432
+ */
433
+ typedef void (^StableHS5Weight)(NSNumber *StableWeight);
434
+
435
+ /**
436
+ Weight by impedence, (kg)
437
+
438
+ @param ImpedanceWeight ImpedanceWeight
439
+ */
440
+ typedef void (^ImpedanceWeight)(NSNumber*ImpedanceWeight);
441
+
442
+ /**
443
+ body info, includes weight(kg), fat content(%), water content(%), muscle content(%), bone mass, visceral fat level, DCI(Kcal). keys: weight, weightFatValue, waterValue, muscleValue, skeletonValue, VFatLevelValue, DCIValue
444
+
445
+
446
+ @param BodyCompositionInforDic BodyCompositionInforDictionary
447
+ */
448
+ typedef void (^BodyCompositionMeasurements)(NSDictionary*BodyCompositionInforDic);
449
+
450
+ /**
451
+ superPassword
452
+
453
+ @param superPassword superPassword
454
+ */
455
+ typedef void (^GetScaleSuperPassword)(NSString*superPassword);
456
+
457
+ /**
458
+ CurrentSerialNub
459
+
460
+ @param serialNub serialNub
461
+ */
462
+ typedef void (^CurrentSerialNub)(NSInteger serialNub);
463
+
464
+ /**
465
+ SendHS5DataBlock
466
+ */
467
+ typedef void (^DisposeSendHS5DataBlock)(void);
468
+
469
+
470
+ #pragma mark HS6 Block
471
+
472
+ /**
473
+ Set HS6 wifi success with device infomation
474
+
475
+ @param deviceInfo deviceInfo
476
+ */
477
+ typedef void (^DisposeHS6SuccessBlock)(NSDictionary* deviceInfo);
478
+
479
+ /**
480
+ Set HS6 wifi fail
481
+
482
+ @param failmsg fail message
483
+ */
484
+ typedef void (^DisposeHS6FailBlock)(NSString* failmsg);
485
+
486
+ /**
487
+ Set HS6 end
488
+
489
+ @param deviceDic deviceDictionary
490
+ */
491
+ typedef void (^DisposeHS6EndBlock)(NSDictionary* deviceDic);
492
+
493
+ /**
494
+ HS6 error
495
+
496
+ @param error error number
497
+ */
498
+ typedef void (^DisposeHS6ErrorBlock)(NSNumber* error);
499
+
500
+ /**
501
+ Binding QR Device
502
+
503
+ @param resultArray resultArray
504
+ */
505
+ typedef void(^BinedQRDeviceBlock)(NSArray *resultArray);
506
+ /**
507
+ Binding QR Device error
508
+
509
+ @param errorCode errorCode
510
+ */
511
+ typedef void(^BinedQRDeviceErrorBlock)(NSString *errorCode);
512
+
513
+ /**
514
+ unbind QRDevice
515
+
516
+ @param resultArray resultArray
517
+ */
518
+ typedef void(^DisBinedQRDeviceBlock)(NSArray *resultArray);
519
+
520
+ /**
521
+ unbind QRDevice error
522
+
523
+ @param errorCode errorCode
524
+ */
525
+ typedef void(^DisBinedQRDeviceErrorBlock)(NSString *errorCode);
526
+
527
+ /**
528
+ getOpenApi
529
+
530
+ @param openAPIInfoDic openAPIInfoDictionary
531
+ */
532
+ typedef void (^DisposeHS6GetOpenAPISuccessBlock)(NSDictionary* openAPIInfoDic);
533
+
534
+ /**
535
+ GetOpenAPIError
536
+
537
+ @param errorCode errorCode
538
+ */
539
+ typedef void (^DisposeHS6GetOpenAPIErrorBlock)(NSDictionary *errorCode);
540
+
541
+ /**
542
+ sync Weight Unit
543
+
544
+ @param syncWeightUnit syncWeightUnit
545
+ */
546
+ typedef void (^DisposeHS6SyncWeightUnitSuccessBlock)(BOOL syncWeightUnit);
547
+
548
+ /**
549
+ Sync Weight Unit Error
550
+
551
+ @param errorCode errorCode
552
+ */
553
+ typedef void (^DisposeHS6SyncWeightUnitErrorBlock)(NSString *errorCode);
554
+
555
+
556
+ //typedef void (^BlockUserAuthentication)(UserAuthenResult result);
557
+
558
+ /**
559
+ the result of userID
560
+
561
+ @param dataArray dataArray
562
+ */
563
+
564
+ typedef void (^BlockDataFromCloud)(NSArray *dataArray);
565
+
566
+ typedef void (^BlockHS6DataFromCloud)(NSDictionary *dataDic);
567
+
568
+ typedef void (^BlockHS6LastTSFromCloud)(NSNumber *lastTS);
569
+
570
+ #pragma mark HS2S Block
571
+
572
+
573
+ /**
574
+ Result
575
+
576
+ @param deviceInfo deviceInfo
577
+ */
578
+ typedef void (^DisposeHS2SDeviceInfo)(NSDictionary*deviceInfo);
579
+
580
+ /**
581
+ HS2S error
582
+
583
+ @param errorID error number
584
+ */
585
+ typedef void (^DisposeHS2SErrorBlock)(HS2SDeviceError errorID);
586
+
587
+ /**
588
+ HS2S battery
589
+
590
+ @param battary battery
591
+ */
592
+ typedef void (^DisposeHS2SBatteryBlock)(NSNumber *battary);
593
+
594
+ /**
595
+ HS2S UserInfo
596
+
597
+
598
+ @param userInfo userInfo
599
+ */
600
+ typedef void (^DisposeHS2SUserInfo)(NSDictionary*userInfo);
601
+
602
+ /**
603
+ Result
604
+
605
+ @param result reset Success
606
+ */
607
+ typedef void (^DisposeHS2SResult)(BOOL result);
608
+
609
+ /**
610
+ HS2S memory count
611
+
612
+ @param count count
613
+ */
614
+ typedef void (^DisposeHS2SMemoryCountBlock)(NSNumber *count);
615
+
616
+ /**
617
+ HS2S memory data
618
+
619
+ @param data data
620
+ */
621
+ typedef void (^DisposeHS2SMemoryDataBlock)(NSArray *data);
622
+
623
+ /**
624
+ HS2S memory count
625
+
626
+ @param count count
627
+ */
628
+ typedef void (^DisposeHS2SAnonymousMemoryCountBlock)(NSNumber *count);
629
+
630
+ /**
631
+ HS2S memory data
632
+
633
+ @param data data
634
+ */
635
+ typedef void (^DisposeHS2SAnonymousMemoryDataBlock)(NSArray *data);
636
+ /**
637
+ Current unstableweight, (Kg)
638
+
639
+ @param unStableWeight unStableWeight
640
+ */
641
+ typedef void (^DisposeHS2SUnStableWeight)(NSNumber *unStableWeight);
642
+
643
+ /**
644
+ Stable weight,(Kg)
645
+
646
+ @param stableWeight StableWeight
647
+ */
648
+ typedef void (^DisposeHS2SStableWeight)(NSNumber *stableWeight);
649
+
650
+ /**
651
+ weightAndBodyInfoDic
652
+
653
+ @param weightAndBodyInfoDic weightAndBodyInfoDic
654
+ */
655
+ typedef void (^DisposeHS2SWeightAndBodyInfo)(NSDictionary *weightAndBodyInfoDic);
656
+
657
+
658
+ /**
659
+ Heart Result
660
+
661
+ @param heartResultDic
662
+ */
663
+ typedef void (^DisposeHS2SHeartResult)(NSDictionary *heartResultDic);
664
+
665
+
666
+ /**
667
+ MeasurementStatus
668
+
669
+ @param measurementStatus
670
+ */
671
+ typedef void (^DisposeHS2SMeasurementStatus)(NSNumber *measurementStatus);
672
+
673
+
674
+
675
+ typedef void (^DisposeHS2SMeasureFinish)(void);
676
+
677
+ #define HS3ConnectNoti @"HS3ConnectNoti"
678
+ #define HS3DisConnectNoti @"HS3DisConnectNoti"
679
+
680
+ #define HS2Discover @"HS2Discover"
681
+ #define HS2ConnectFailed @"HS2ConnectFailed"
682
+ #define HS2ConnectNoti @"HS2ConnectNoti"
683
+ #define HS2DisConnectNoti @"HS2DisConnectNoti"
684
+
685
+ #define HS2SDiscover @"HS2SDiscover"
686
+ #define HS2SConnectFailed @"HS2SConnectFailed"
687
+ #define HS2SConnectNoti @"HS2SConnectNoti"
688
+ #define HS2SDisConnectNoti @"HS2SDisConnectNoti"
689
+
690
+ #define HS4Discover @"HS4Discover"
691
+ #define HS4ConnectFailed @"HS4ConnectFailed"
692
+ #define HS4ConnectNoti @"HS4ConnectNoti"
693
+ #define HS4DisConnectNoti @"HS4DisConnectNoti"
694
+
695
+
696
+ #define HS5ConnectNoti @"HS5ConnectNoti"
697
+ #define HS5DisConnectNoti @"HS5DisConnectNoti"
698
+
699
+ #define HSDeviceID @"ID"
700
+ #define HSSDKRightApi @"OpenApiWeight"
701
+
702
+
703
+ #define ContinuaHSDiscover @"ContinuaHSDiscover"
704
+ #define ContinuaHSConnectFailed @"ContinuaHSConnectFailed"
705
+ #define ContinuaHSConnectNoti @"ContinuaHSConnectNoti"
706
+ #define ContinuaHSDisConnectNoti @"ContinuaHSDisConnectNoti"
707
+
708
+
709
+ #endif