summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothServices.h
diff options
context:
space:
mode:
authorhc <haocheng.xie@respiree.com>2026-04-13 15:17:52 +0800
committerhc <haocheng.xie@respiree.com>2026-04-13 15:17:52 +0800
commitd6d9a09d505d11148599a95a5be3e1351edbe0ac (patch)
treea5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothServices.h
parente4fb9966e762852bf17f21c8406501d42fae0b61 (diff)
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothServices.h')
-rwxr-xr-xlibs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothServices.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothServices.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothServices.h
new file mode 100755
index 0000000..e26ee59
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOBluetoothServices.h
@@ -0,0 +1,75 @@
1//
2// IDOBluetoothServices.h
3// VeryfitSDK
4//
5// Created by apple on 2018/8/22.
6// Copyright © 2018年 hedongyang. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
11#elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
12#else
13#import "IDOGetInfoBluetoothModel.h"
14#endif
15
16// 蓝牙扫描、连接状态通知监听名字 | Bluetooth scan, connection status notification listener name
17extern NSString * _Nonnull IDOBluetoothConnectStateNotifyName;
18
19// 蓝牙扫描、连接过程错误通知监听名字 | Bluetooth scan, connection process error notification listener name
20extern NSString * _Nonnull IDOBluetoothConnectErrorNotifyName;
21
22// 蓝牙主动断开通知监听名字,多在配对和固件升级使用 | Bluetooth disconnect notification listener name
23extern NSString * _Nonnull IDOBluetoothDisconnectNotifyName;
24
25// 蓝牙主动开始扫描通知监听名字,多在配对和固件升级使用 | Bluetooth start scan notification listener name
26extern NSString * _Nonnull IDOBluetoothStartScanNotifyName;
27
28// 蓝牙主动停止扫描通知监听名字,多在配对和固件升级使用 | Bluetooth stop scan notification listener name
29extern NSString * _Nonnull IDOBluetoothStopScanNotifyName;
30
31// 当前连接的手环设备为OTA模式通知监听名字 | The currently connected bracelet device is OTA mode notification listener name
32extern NSString * _Nonnull IDOBluetoothOtaModeNotifyName;
33
34// 蓝牙日志打开记录通知名字 | Bluetooth log opens record notification name
35extern NSString * _Nonnull IDOBluetoothOpenLogRecordNotifyName;
36
37// 数据迁移状态通知名字 | Data migration status notification name
38extern NSString * _Nonnull IDOBluetoothDataMigrationNotifyName;
39
40@interface IDOBluetoothServices : NSObject
41
42/*
43 是否输出蓝牙sdk运行日志 | Whether to output the Bluetooth sdk running log
44 */
45@property (nonatomic,copy,nullable) IDOBluetoothServices *_Nonnull(^outputSdkLog)(BOOL isOutput);
46
47/*
48 是否输出蓝牙协议运行日志 | Whether to output the Bluetooth protocol running log
49 */
50@property (nonatomic,copy,nullable) IDOBluetoothServices *_Nonnull(^outputProtocolLog)(BOOL isOutput);
51
52/*
53 是否记录原始数据日志 | Whether to log raw data
54 */
55@property (nonatomic,copy,nullable) IDOBluetoothServices *_Nonnull(^rawDataLog)(BOOL isRecord);
56
57/*
58 是否添加阿里云日志 默认 No | Add Alibaba Cloud Log Default No
59 */
60@property (nonatomic,copy,nullable) IDOBluetoothServices *_Nonnull(^addAliYunLog)(BOOL isAdd);
61
62/**
63 * 注册SDK服务后,初始化设备信息并返回,需开始启动蓝牙,根据各自业务需求,可以选择自己的APP创建蓝牙管理,也可以使用我们提供的库创建蓝牙管理.
64 * After the SDK service is registered, the device information is initialized and returned, and bluetooth needs to be started.
65 * According to their business needs, they can choose their own APP to create bluetooth management, or they can use the library we provide to create bluetooth management.
66 */
67@property (nonatomic,copy,nullable) void(^startScanBule)(void(^ _Nullable getDeviceInfoBlock)(IDOGetDeviceInfoBluetoothModel * _Nullable model));
68
69/**
70 * @brief 注册SDK服务,初始化设备信息 | Register for SDK service,initializes device info
71 * @return IDOBluetoothServices
72 */
73IDOBluetoothServices * _Nonnull registrationServices(void);
74
75@end