diff options
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWatchDialManager.h')
| -rwxr-xr-x | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWatchDialManager.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWatchDialManager.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWatchDialManager.h new file mode 100755 index 0000000..3145921 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/IDOWatchDialManager.h | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | // | ||
| 2 | // IDOWatchDialManager.h | ||
| 3 | // IDOBluetoothInternal | ||
| 4 | // | ||
| 5 | // Created by 何东阳 on 2019/8/21. | ||
| 6 | // Copyright © 2019 何东阳. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | |||
| 11 | typedef void(^ _Nullable setComplete)(IDOWatchDialInfoModel * _Nullable model,int errorCode); | ||
| 12 | |||
| 13 | @interface IDOWatchDialManager : NSObject | ||
| 14 | |||
| 15 | /** | ||
| 16 | * 表盘文件传输路径 (zip) | ||
| 17 | * Transfer file path | ||
| 18 | */ | ||
| 19 | @property (nonatomic,copy,nullable) NSString * filePath; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * 获取当前设备屏幕信息 | ||
| 23 | * Gets the current device screen information | ||
| 24 | */ | ||
| 25 | @property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^getDialScreenInfo)(void(^ _Nullable dialScreenCallback)(IDOWatchScreenInfoModel * _Nullable model,int errorCode)); | ||
| 26 | |||
| 27 | /** | ||
| 28 | * 获取当前设备所有表盘信息 | ||
| 29 | * Gets all dial information of the current device | ||
| 30 | */ | ||
| 31 | @property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^getDialListInfo)(void(^ _Nullable dialListCallback)(IDOWatchDialInfoModel * _Nullable model,int errorCode)); | ||
| 32 | |||
| 33 | /** | ||
| 34 | * 获取当前设备当前表盘信息 | ||
| 35 | * Gets current dial information of the current device | ||
| 36 | */ | ||
| 37 | @property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^getCurrentDialInfo)(void(^ _Nullable currentDialCallback)(IDOWatchDialInfoModel * _Nullable model,int errorCode)); | ||
| 38 | |||
| 39 | /** | ||
| 40 | * 设置当前表盘并回调 | ||
| 41 | * Set the current dial and call back | ||
| 42 | */ | ||
| 43 | @property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^setCurrentDial)(setComplete block,IDOWatchDialInfoItemModel * _Nullable model); | ||
| 44 | |||
| 45 | /** | ||
| 46 | * 表盘传输进度回调 (1-100) | ||
| 47 | * file transfer progress (1-100) | ||
| 48 | */ | ||
| 49 | @property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^addDialProgress)(void(^ _Nullable progressCallback)(int progress)); | ||
| 50 | |||
| 51 | /** | ||
| 52 | * 表盘传输完成回调 | ||
| 53 | * File transfer complete callback | ||
| 54 | */ | ||
| 55 | @property (nonatomic,copy,nullable) IDOWatchDialManager *_Nonnull(^addDialTransfer)(void(^ _Nullable transferComplete)(int errorCode)); | ||
| 56 | |||
| 57 | /** | ||
| 58 | * 初始化表盘传输管理对象(单例) | ||
| 59 | * Initialize the transfer file management object (singleton) | ||
| 60 | */ | ||
| 61 | IDOWatchDialManager * _Nonnull initWatchDialManager(void); | ||
| 62 | |||
| 63 | /** | ||
| 64 | * 表盘开始传输 | ||
| 65 | * file start transfer | ||
| 66 | */ | ||
| 67 | + (void)startDialTransfer; | ||
| 68 | |||
| 69 | /** | ||
| 70 | * 表盘结束传输 | ||
| 71 | * file stop transfer | ||
| 72 | */ | ||
| 73 | + (void)stopDialTransfer; | ||
| 74 | |||
| 75 | @end | ||
