summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/AM5.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/AM5.h')
-rwxr-xr-xlibs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/AM5.h335
1 files changed, 335 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/AM5.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/AM5.h
new file mode 100755
index 0000000..a08f3ae
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/AM5.h
@@ -0,0 +1,335 @@
1//
2// AM5.h
3// iHealthSDKStatic
4//
5// Created by user on 2019/7/2.
6// Copyright © 2019 ihealthSDK. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "AM5Header.h"
11#import "AMMacroFile.h"
12
13@interface AM5 : NSObject
14
15@property (strong, nonatomic) NSString *currentUUID;
16@property (strong, nonatomic) NSString *serialNumber;
17
18
19/**
20 *BindingDevice
21
22 * @param bindingResult YES:success NO:failed
23 * @param disposeErrorBlock error code
24 */
25-(void)commandBindingDevice:(DisposeBindingAM5Result)bindingResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
26
27/**
28 *UnBindingDevice
29
30 * @param unbindingResult YES:success NO:failed
31 * @param disposeErrorBlock error code
32 */
33-(void)commandUnBindingDevice:(DisposeUnBindingAM5Result)unbindingResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
34/**
35 * GetDeviceInfo
36
37 * @param deviceInfo
38 This dictionary includes key:
39 Mode:Device mode BatteryStatus:Battery status BatteryLevel:Battery level RebootFlag:Whether to restart BindTimeStr:Binding timestamp BindState:Binding status
40 * @param disposeErrorBlock error code
41 */
42-(void)commandGetDeviceInfo:(DisposeGetAM5DeviceInfo)deviceInfo DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
43/**
44 * Get functional information
45
46 * @param deviceFunctionalInfo
47 This dictionary includes key:
48 Steps:Number of steps
49 SleepDetection:Sleep detection
50 SingleMovement:Single movement
51 LiveData:Real-time data
52 Update:Equipment Update
53 HeartRate:Heart rate function
54 Notification:Notification Center
55 Timeline:Timeline
56 * @param disposeErrorBlock error code
57 */
58-(void)commandGetFuncTable:(DisposeGetAM5FuncTable)deviceFunctionalInfo DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
59/**
60 * GetDeviceMac
61
62 * @param deviceMac This is the MAC for the device
63 * @param disposeErrorBlock error code
64 */
65-(void)commandGetDeviceMac:(DisposeGetAM5Mac)deviceMac DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
66
67/**
68 * GetLiveData
69
70 * @param liveData
71 This dictionary includes key:
72 Step:Step count Calorie:Calorie Distances:distance ActiveTime:Duration of activity HeartRate:Heart rate
73 * @param disposeErrorBlock error code
74 */
75-(void)commandGetLiveData:(DisposeGetAM5LiveData)liveData DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
76
77/**
78 * GetActivityCount
79
80 * @param activityCount
81
82 This dictionary includes key:
83
84 ActivityCount:Number of activities ActivityPacketCount:Number of active packages GpsCount:Number of GPS data GpsPacketCount:Number of GPS packets
85
86 * @param disposeErrorBlock error code
87 */
88-(void)commandGetActivityCount:(DisposeGetAM5ActivityCount)activityCount DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
89
90/**
91 * setCurrentTime
92 * @param setCurrentTime Synchronizes the current time to the device YES:success NO:failed
93 * @param disposeErrorBlock error code
94 */
95-(void)commandSetCurrentTime:(DisposeAM5SetCurrentTime)setCurrentTime DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
96
97/**
98 * setAlarm
99 * @param alarm
100 example code:
101 IDOSetAlarmInfoBluetoothModel * alarmModel= [IDOSetAlarmInfoBluetoothModel currentModel];
102 switch alarmModel.isOpen
103 Whether the synchronization alarmModel.isSync
104 Whether or not to delete alarmModel.isDelete
105 Type alarmModel.type
106 Hour alarmModel.hour
107 Minute alarmModel.minute
108 Repeat alarmModel.repeat
109 TsnoozeDuration alarmModel.tsnoozeDuration
110 AlarmId alarmModel.alarmId
111
112 * @param setAlarmResult YES:success NO:failed
113 * @param disposeErrorBlock error code
114 */
115-(void)commandSetAlarm:(IDOSetAlarmInfoBluetoothModel*)alarm setResult:(DisposeAM5SetAlarm)setAlarmResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
116
117/**
118 * SetUserTarget
119 * @param target
120 example code:
121 IDOSetUserInfoBuletoothModel * userModel= [IDOSetUserInfoBuletoothModel currentModel];
122 Target sleep time(hour) userModel.goalSleepDataHour
123 Target sleep time(minutes) userModel.goalSleepDataMinute
124 Target steps userModel.goalStepData
125 Target Calorie userModel.goalCalorieData
126 Target Distance userModel.goalDistanceData
127 Target Weight userModel.goalWeightData
128 Target type userModel.goalType (type: 0: steps 1: calories 2: distance) setting a type of target requires executing a command once
129
130 * @param setUserTargetResult YES:success NO:failed
131 * @param disposeErrorBlock error code
132 */
133-(void)commandSetUserTarget:(IDOSetUserInfoBuletoothModel*)target setResult:(DisposeAM5SetUserTarget)setUserTargetResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
134
135/**
136 * SetUserInfo
137 @param userInfo
138 example code:
139 IDOSetUserInfoBuletoothModel * userModel= [IDOSetUserInfoBuletoothModel currentModel];
140 height userModel.height
141 weight userModel.weight
142 gender userModel.gender Gender 1: male 2: female
143 year userModel.year
144 month userModel.month
145 day userModel.day
146
147 * @param setUserInfoResult YES:success NO:failed
148 * @param disposeErrorBlock error code
149 */
150-(void)commandSetUserInfo:(IDOSetUserInfoBuletoothModel*)userInfo setResult:(DisposeAM5SetUserInfo)setUserInfoResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
151
152/**
153 * SetUnit
154 @param unit
155 example code:
156 IDOSetUnitInfoBluetoothModel * unitInfo = [IDOSetUnitInfoBluetoothModel currentModel];
157 From the unit unitInfo.distanceUnit 0x00: invalid, 0x01:km, 0x02:mi
158 Unit of weight unitInfo.weightUnit 0x00: invalid, 0x01:kg, 0x02:lb, 0x03: st
159 Temperature of the unit unitInfo.tempUnit 0x00: invalid, 0 x01: ° C, 0 x02: ° F
160 The language unit unitInfo.languageUnit (Invalid :0, Chinese :1, English :2, French :3, German :4, Italian :5, Spanish :6, Japanese :7,Polish :8, Czech :9, Romania :10, Lithuanian :11, Dutch :12, Slovenia :13,Hungarian :14, Russian :15, Ukrainian :16, slovak :17, Danish :18, Croatian :19)
161 Walking pace unitInfo.strideWalk Convert to the default value of 90 for men (unit: cm)
162 Running pace unitInfo.strideRun According to the default value of male conversion 72 (unit: cm)
163 GPS calibration step size unitInfo.strideGps 0x00: invalid, 0x01: on, 0x02: off
164 Unit of time unitInfo.timeUnit 0x00: invalid, 0x01:24 hours, 0x02: 12 hours
165 The beginning of the week unitInfo.weekStart (Sunday: 0, Monday: 1, Tuesday: 2, Wednesday: 3, Thursday: 4, Friday: 5, Saturday: 6)
166
167 * @param setUnitResult YES:success NO:failed
168 * @param disposeErrorBlock error code
169 */
170-(void)commandSetUnit:(IDOSetUnitInfoBluetoothModel*)unit setResult:(DisposeAM5SetUnit)setUnitResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
171
172/**
173 * SetLongSit
174 @param longSit
175 example code:
176 IDOSetLongSitInfoBuletoothModel * SitInfo = [IDOSetLongSitInfoBuletoothModel currentModel];
177
178 interval SitInfo.interval
179 Start(Hour) SitInfo.startHour
180 Start(minutes) SitInfo.startMinute
181 End(Hour) SitInfo.endHour
182 End(minutes) SitInfo.endMinute
183 Switch SitInfo.isOpen
184
185 * @param setLongSitResult YES:success NO:failed
186 * @param disposeErrorBlock error code
187 */
188-(void)commandSetLongSit:(IDOSetLongSitInfoBuletoothModel*)longSit setResult:(DisposeAM5SetLongSit)setLongSitResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
189
190
191/**
192 * SetLeftRightHand
193 @param leftRightHand
194 example code:
195 IDOSetLeftOrRightInfoBuletoothModel * leftOrRightModel = [IDOSetLeftOrRightInfoBuletoothModel currentModel];
196
197 Whether to wear right hand leftOrRightModel.isRight 0:left 1:right
198
199 * @param setLeftRightHandResult YES:success NO:failed
200 * @param disposeErrorBlock error code
201 */
202-(void)commandSetLeftRightHand:(IDOSetLeftOrRightInfoBuletoothModel*)leftRightHand setResult:(DisposeAM5SetLeftRightHand)setLeftRightHandResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
203
204/**
205 * SetHrInterval
206 @param hrInterval
207 example code:
208 IDOSetHrIntervalInfoBluetoothModel * hrIntervalInfo = [IDOSetHrIntervalInfoBluetoothModel currentModel];
209
210 Fat burning threshold hrIntervalInfo.burnFat
211 Aerobic threshold hrIntervalInfo.aerobic
212 Threshold limit hrIntervalInfo.limitValue
213 Maximum heart rate hrIntervalInfo.userMaxHr
214
215 * @param setHrIntervalResult YES:success NO:failed
216 * @param disposeErrorBlock error code
217 */
218-(void)commandSetHrInterval:(IDOSetHrIntervalInfoBluetoothModel*)hrInterval setResult:(DisposeAM5SetHrInterval)setHrIntervalResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
219
220/**
221 * SetHrMode
222 @param hrMode
223 example code:
224 IDOSetHrModeInfoBluetoothModel * hrModeInfo = [IDOSetHrModeInfoBluetoothModel currentModel];
225 Heart rate pattern hrModeInfo.modeType 0: turn off heart rate monitoring function 1: manual mode 2: automatic mode (default: automatic mode)
226 Is there an interval hrModeInfo.isHasTimeRange
227 Start(Hour) hrModeInfo.startHour
228 Start(minutes) hrModeInfo.startMinute
229 End(Hour) hrModeInfo.endHour
230 End(minutes) hrModeInfo.endMinute
231
232 * @param setHrModeResult YES:success NO:failed
233 * @param disposeErrorBlock error code
234 */
235-(void)commandSetHrMode:(IDOSetHrModeInfoBluetoothModel*)hrMode setResult:(DisposeAM5SetHrMode)setHrModeResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
236
237/**
238 * SetNoDisturbMode
239 @param noDisturbMode
240 example code:
241 IDOSetNoDisturbModeInfoBluetoothModel * noDisturbModeInfo = [IDOSetNoDisturbModeInfoBluetoothModel currentModel];
242
243 Is there an interval noDisturbModeInfo.isOpen
244 Start(Hour) noDisturbModeInfo.startHour
245 Start(minutes) noDisturbModeInfo.startMinute
246 End(Hour) noDisturbModeInfo.endHour
247 End(minutes) noDisturbModeInfo.endMinute
248
249 * @param setNoDisturbModeResult YES:success NO:failed
250 * @param disposeErrorBlock error code
251 */
252-(void)commandSetNoDisturbMode:(IDOSetNoDisturbModeInfoBluetoothModel*)noDisturbMode setResult:(DisposeAM5SetNoDisturbMode)setNoDisturbModeResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
253/**
254 * SetSportModeSelect
255 @param sportModeSelect
256 example code:
257 IDOSetSportShortcutInfoBluetoothModel * sportShortcutInfo = [IDOSetSportShortcutInfoBluetoothModel currentModel];
258 sportShortcutInfo.isWalk
259 sportShortcutInfo.isRun
260 sportShortcutInfo.isByBike
261 sportShortcutInfo.isOnFoot
262 sportShortcutInfo.isMountainClimbing
263 sportShortcutInfo.isBadminton
264 sportShortcutInfo.isSpinning
265 sportShortcutInfo.isTreadmill
266 sportShortcutInfo.isFitness
267 sportShortcutInfo.isYoga
268 sportShortcutInfo.isBasketball
269 sportShortcutInfo.isTennis
270 sportShortcutInfo.isDance
271 sportShortcutInfo.isFootball
272
273 * @param setSportModeSelectResult YES:success NO:failed
274 * @param disposeErrorBlock error code
275 */
276-(void)commandSetSportModeSelect:(IDOSetSportShortcutInfoBluetoothModel*)sportModeSelect setResult:(DisposeAM5SetSportModeSelect)setSportModeSelectResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
277
278/**
279 * SetSwitchNotice
280 @param switchNotice
281 example code:
282 IDOSetNoticeInfoBuletoothModel* noticeInfo = [IDOSetNoticeInfoBuletoothModel currentModel];
283 noticeInfo.isPairing
284 noticeInfo.isOnChild
285 * @param setSwitchNoticeResult YES:success NO:failed
286 * @param disposeErrorBlock error code
287 */
288-(void)commandSetSwitchNotice:(IDOSetNoticeInfoBuletoothModel*)switchNotice setResult:(DisposeAM5SetSwitchNotice)setSwitchNoticeResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
289
290/**
291 * syncConfigComplete
292
293 * @param syncConfigCompleteResult YES:success NO:failed
294 * @param disposeErrorBlock error code
295 */
296-(void)commandSyncConfigComplete:(DisposeGetAM5SyncConfigComplete)syncConfigCompleteResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
297
298/**
299 * syncData
300
301 * @param heartRateData heartRateData
302 * @param sleepData sleepData
303 * @param activityData activityData
304 * @param syncprogress data progress
305 * @param syncDataSuccess sync finish
306 * @param disposeErrorBlock error code
307 */
308-(void)commandSyncData:(DisposeGetAM5SyncHeartRateData)heartRateData syncSleepData:(DisposeGetAM5SyncSleepData)sleepData syncActivityData:(DisposeGetAM5SyncActivityData)activityData syncDataProgress:(DisposeAM5SyncDataProgress)syncprogress syncDataSuccess:(DisposeAM5SyncDataSuccess)syncDataSuccess DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
309
310/**
311 * setAppReboot
312
313 * @param setAppRebootResult YES:success NO:failed
314 * @param disposeErrorBlock error code
315 */
316-(void)commandSetAppReboot:(DisposeAM5SetAppReboot)setAppRebootResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
317
318/**
319 * SetHandUp
320 @param setHandUp
321 example code:
322 IDOSetHandUpInfoBuletoothModel * handUpModel= [IDOSetHandUpInfoBuletoothModel currentModel];
323 handUpModel.isOpen YES:open NO:close
324 * @param setHandUpResult YES:success NO:failed
325 * @param disposeErrorBlock error code
326 */
327-(void)commandSetHandUp:(IDOSetHandUpInfoBuletoothModel*)setHandUp setResult:(DisposeAM5SetHandUp)setHandUpResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
328
329/**
330 * Disconnect AM5 connection.
331 */
332-(void)commandAM5Disconnect;
333
334@end
335