From d6d9a09d505d11148599a95a5be3e1351edbe0ac Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 13 Apr 2026 15:17:52 +0800 Subject: Local iHealth SDK, device detail screen, iOS event fixes --- .../ios/ReactNativeIOSLibrary/BPProfileModule.h | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100755 libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h') diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h new file mode 100755 index 0000000..5fa5fd4 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/BPProfileModule.h @@ -0,0 +1,83 @@ +// +// BPProfileModule.h +// ReactNativeIOSLibrary +// +// Created by daiqingquan on 2016/11/23. +// Copyright © 2016年 daiqingquan. All rights reserved. +// + +#import +#if __has_include() +#import +#else +#import "RCTEventEmitter.h" +#endif +@interface BPProfileModule : NSObject + +#define kACTION_ERROR_BP @"error_bp" +#define kERROR_DESCRIPTION_BP @"description" +#define kACTION_BATTERY_BP @"battery_bp" +#define kACTION_ZOREING_BP @"zoreing_bp" +#define kACTION_ZOREOVER_BP @"zoreover_bp" +#define kACTION_ONLINE_PRESSURE_BP @"online_pressure_bp" +#define kACTION_ONLINE_PULSEWAVE_BP @"online_pulsewave_bp" +#define kACTION_ONLINE_RESULT_BP @"online_result_bp" +#define kACTION_HISTORICAL_NUM_BP @"offlinenum" +#define kACTION_HISTORICAL_DATA_BP @"historicaldata_bp" +#define kACTION_HISTORICAL_OVER_BP @"get_historical_over_bp" +#define kACTION_FUNCTION_INFORMATION_BP @"function_info_bp" +#define kACTION_SET_UNIT_SUCCESS_BP @"set_unit_success" +#define kACTION_SET_ANGLE_SUCCESS_BP @"set_angle_success" +#define kACTION_INTERRUPTED_BP @"interrupted_bp" +#define kACTION_Delete_BP @"delete_bp" + + +#define kACTION_ENABLE_OFFLINE_BP @"enable_offline_bp" +#define kACTION_DISENABLE_OFFLINE_BP @"disenable_offline_bp" +#define kACTION_IS_ENABLE_OFFLINE @"offlinestatus" + +#define kMessage @"Message" +#define kIDPS @"idps" +#define kACTION @"action" +#define kERROR_NUM_BP @"error" +#define kBATTERY_BP @"battery" +#define kBLOOD_PRESSURE_BP @"pressure" +#define kFLAG_HEARTBEAT_BP @"heartbeat" +#define kPULSEWAVE_BP @"wave" +#define kHIGH_BLOOD_PRESSURE_BP @"sys" +#define kLOW_BLOOD_PRESSURE_BP @"dia" +#define kPULSE_BP @"heartRate" +#define kMEASUREMENT_DATE_BP @"date" +#define kMEASUREMENT_AHR_BP @"arrhythmia" +#define kMEASUREMENT_HSD_BP @"hsd" +#define kMEASUREMENT_STRAT_ANGLE_BP @"startAngle" +#define kMEASUREMENT_ANGLE_CHANGE_BP @"measureAngleChange" +#define kMEASUREMENT_HAND_BP @"chooseHand" +#define kDATAID @"dataID" +#define kHISTORICAL_NUM_BP @"offlinenum" +#define kHISTORICAL_DATA_BP @"data" +#define kIS_ENABLE_OFFLINE @"offlinestatus" + +#define kFUNCTION_IS_UPAIR_MEASURE @"upAirMeasureFlg" +#define kFUNCTION_IS_ARM_MEASURE @"armMeasureFlg" +#define kFUNCTION_HAVE_ANGLE_SENSOR @"haveAngleSensor" +#define kFUNCTION_HAVE_OFFLINE @"haveOffline" +#define kFUNCTION_HAVE_ANGLE_SETTING @"haveAngleSet" +#define kFUNCTION_IS_MULTI_UPLOAD @"mutableUpload" +#define kFUNCTION_HAVE_SELF_UPDATE @"selfUpdate" +#define kFUNCTION_HAVE_HSD @"haveHSD" + +#define kANGLE_BP @"angle" + +#define kWHICH_ARM @"which_arm" + +#define kACTION_ANGLE_BP @"angle_bp" + +#define kMAC @"mac" +#define kType @"type" + + ++ (void)sendErrorToEmitter:(RCTEventEmitter *)emitter eventNotify:(NSString*)eventNotify WithCode:(NSInteger)errorCode; ++ (void)sendEventToEmitter:(RCTEventEmitter *)emitter eventNotify:(NSString*)eventNotify WithDict:(NSDictionary*)dict; + +@end -- cgit