summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOTransferFileManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOTransferFileManager.h')
-rwxr-xr-xlibs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOTransferFileManager.h116
1 files changed, 116 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOTransferFileManager.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOTransferFileManager.h
new file mode 100755
index 0000000..bf390b1
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOTransferFileManager.h
@@ -0,0 +1,116 @@
1//
2// IDOTransferFileManager.h
3// IDOBluetooth
4//
5// Created by hedongyang on 2018/9/30.
6// Copyright © 2018年 apple. 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 "IDOTranEnum.h"
14#endif
15
16@interface IDOTransferFileManager : NSObject
17
18/**
19 * 传输文件类型 agps文件、表盘文件、字库文件、图片文件
20 * Transfer file type agps file, dial file
21 */
22@property (nonatomic,assign) IDO_DATA_FILE_TRAN_TYPE transferType;
23
24/**
25 * 传输文件压缩类型 不适用压缩、zlib压缩、fastlz压缩
26 * Transfer file compression types not suitable for compression, zlib compression, fastlz compression
27 */
28@property (nonatomic,assign) IDO_DATA_TRAN_COMPRESSION_TYPE compressionType;
29
30/**
31 * 传输文件过程状态
32 * Transfer file process status
33 */
34@property (nonatomic,assign) IDO_DATA_FILE_TRAN_STATE_TYPE tranStateType;
35
36/**
37 * 设置传输文件包文个数 默认 10
38 * Set the number of transfer file packet default 10
39 */
40@property (nonatomic,assign) NSInteger numberPackets;
41
42/**
43 * 传输文件名称
44 * Transfer file name
45 */
46@property (nonatomic,copy,nullable) NSString * fileName;
47
48/**
49 * 传输文件路径
50 * Transfer file path
51 */
52@property (nonatomic,copy,nullable) NSString * filePath;
53
54/*
55 * 传输文件的二进制数据
56 * Transfer the binary data of the file
57 */
58@property (nonatomic,copy,nullable) NSData * fileData;
59
60/**
61 * 蓝牙写入数据是否响应
62 * Bluetooth sends data in response
63 */
64@property (nonatomic,assign) BOOL isResponse;
65
66/**
67 * 是否设置连接参数
68 * Set connection parameters
69 */
70@property (nonatomic,assign) BOOL isSetConnectParam;
71
72/**
73 * 检测文件回调
74 * Detect file callback
75 */
76@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addDetection)(void(^ _Nullable detectionCallback)(int errorCode));
77
78/**
79 * 文件传输进度回调 (1-100)
80 * file transfer progress (1-100)
81 */
82@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addProgress)(void(^ _Nullable progressCallback)(int progress));
83
84/**
85 * 文件传输完成回调
86 * File transfer complete callback
87 */
88@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addTransfer)(void(^ _Nullable transferComplete)(int errorCode));
89
90/**
91 * 文件写入完成回调 agps文件传输完成后需要查询写入状态
92 * File write complete callback
93 */
94@property (nonatomic,copy,nullable) IDOTransferFileManager *_Nonnull(^addWrite)(void(^ _Nullable writeComplete)(int errorCode));
95
96/**
97 * 初始化传输文件管理对象(单例)
98 * Initialize the transfer file management object (singleton)
99 */
100IDOTransferFileManager * _Nonnull initTransferManager(void);
101
102/**
103 * 文件开始传输
104 * file start transfer
105 */
106+ (void)startTransfer;
107
108/**
109 * 文件结束传输
110 * file stop transfer
111 */
112+ (void)stopTransfer;
113
114
115
116@end