diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BTMProfileModule.m')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BTMProfileModule.m | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BTMProfileModule.m b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BTMProfileModule.m new file mode 100755 index 0000000..61ee3fe --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BTMProfileModule.m | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | // | ||
| 2 | // BTMProfileModule.m | ||
| 3 | // ReactNativeIOSLibrary | ||
| 4 | // | ||
| 5 | // Created by daiqingquan on 2016/12/4. | ||
| 6 | // Copyright © 2016年 daiqingquan. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "BTMProfileModule.h" | ||
| 10 | |||
| 11 | @implementation BTMProfileModule | ||
| 12 | |||
| 13 | |||
| 14 | RCT_EXPORT_MODULE() | ||
| 15 | |||
| 16 | #pragma mark | ||
| 17 | #pragma mark - constantsToExport | ||
| 18 | |||
| 19 | |||
| 20 | - (NSDictionary *)constantsToExport | ||
| 21 | { | ||
| 22 | return @{ | ||
| 23 | @"ACTION_BTM_BATTERY":BTM_ACTION_BATTERY, | ||
| 24 | @"BTM_BATTERY":BTM_BATTERY, | ||
| 25 | @"ACTION_BTM_MEMORY":BTM_ACTION_MEMORY, | ||
| 26 | @"ACTION_BTM_MEASURE":BTM_ACTION_MEASURE, | ||
| 27 | @"ACTION_BTM_CALLBACK":BTM_ACTION_CALLBACK, | ||
| 28 | @"ACTION_ERROR_BTM":BTM_ACTION_ERROR, | ||
| 29 | @"MEMORY_COUNT":BTM_MEMORY_COUNT, | ||
| 30 | @"BTM_TEMPERATURE_ARRAY":BTM_TEMPERATURE_ARRAY, | ||
| 31 | @"BTM_TEMPERATURE_TARGET":BTM_TEMPERATURE_TARGET, | ||
| 32 | @"BTM_TEMPERATURE":BTM_TEMPERATURE, | ||
| 33 | @"BTM_MEASURE_TIME":BTM_MEASURE_TIME, | ||
| 34 | @"ERROR_NUM_BTM":BTM_ERROR_NUM, | ||
| 35 | @"ERROR_DESCRIPTION_BTM":BTM_ERROR_DESCRIPTION, | ||
| 36 | @"devices":BTM_ERROR_DESCRIPTION, | ||
| 37 | @"ACTION_GET_ALL_CONNECTED_DEVICES":@"ACTION_GET_ALL_CONNECTED_DEVICES", | ||
| 38 | }; | ||
| 39 | }; | ||
| 40 | |||
| 41 | |||
| 42 | + (BOOL)requiresMainQueueSetup | ||
| 43 | { | ||
| 44 | return YES; | ||
| 45 | } | ||
| 46 | |||
| 47 | @end | ||
