diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/POProfileModule.m')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/POProfileModule.m | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/POProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/POProfileModule.m new file mode 100755 index 0000000..cc12195 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/POProfileModule.m | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | // | ||
| 2 | // POProfileModule.m | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 2016/12/4. | ||
| 6 | // Copyright © 2016年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "POProfileModule.h" | ||
| 10 | |||
| 11 | @implementation POProfileModule | ||
| 12 | |||
| 13 | |||
| 14 | RCT_EXPORT_MODULE() | ||
| 15 | |||
| 16 | #pragma mark | ||
| 17 | #pragma mark - constantsToExport | ||
| 18 | |||
| 19 | |||
| 20 | - (NSDictionary *)constantsToExport | ||
| 21 | { | ||
| 22 | return @{ | ||
| 23 | @"ACTION_BATTERY_PO":@"ACTION_BATTERY_PO", | ||
| 24 | @"BATTERY_PO":PO_BATTERY, | ||
| 25 | @"ACTION_LIVEDA_PO":@"ACTION_LIVEDA_PO", | ||
| 26 | @"PULSE_WAVE_PO":@"pulseWave", | ||
| 27 | @"PI_PO":@"pi", | ||
| 28 | @"PULSE_STRENGTH_PO":@"pulsestrength", | ||
| 29 | @"BLOOD_OXYGEN_PO":@"bloodoxygen", | ||
| 30 | @"PULSE_RATE_PO":@"heartrate", | ||
| 31 | @"ACTION_RESULTDATA_PO":@"ACTION_RESULTDATA_PO", | ||
| 32 | @"DATAID":@"dataID", | ||
| 33 | @"ACTION_OFFLINEDATA_PO":@"ACTION_OFFLINEDATA_PO", | ||
| 34 | @"OFFLINEDATA_PO":@"offLineData", | ||
| 35 | @"MEASURE_DATE_PO":@"MEASURE_DATE_PO", | ||
| 36 | @"ACTION_NO_OFFLINEDATA_PO":@"ACTION_NO_OFFLINEDATA_PO", | ||
| 37 | @"ACTION_ERROR_PO":@"ACTION_ERROR_PO", | ||
| 38 | @"ACTION_GET_ALL_CONNECTED_DEVICES":@"ACTION_GET_ALL_CONNECTED_DEVICES", | ||
| 39 | }; | ||
| 40 | }; | ||
| 41 | |||
| 42 | |||
| 43 | + (BOOL)requiresMainQueueSetup | ||
| 44 | { | ||
| 45 | return YES; | ||
| 46 | } | ||
| 47 | |||
| 48 | @end | ||
