ilabs-flir 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Flir.podspec +31 -31
- package/README.md +1271 -1271
- package/android/Flir/build.gradle.kts +85 -80
- package/android/Flir/libs/flir-stubs.jar +0 -0
- package/android/Flir/src/main/AndroidManifest.xml +31 -31
- package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCode.java +13 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/ThermalSdkAndroid.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/androidsdk/image/BitmapAndroid.java +20 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ImageBuffer.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/JavaImageBuffer.java +35 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Palette.java +15 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/PaletteManager.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/Point.java +11 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalImage.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalValue.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/Camera.java +26 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CameraType.java +8 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/CommunicationInterface.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/ConnectParameters.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/Identity.java +23 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/IpSettings.java +9 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/RemoteControl.java +16 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/connectivity/ConnectionStatusListener.java +7 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryEventListener.java +14 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryFactory.java +33 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnReceived.java +5 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnRemoteError.java +7 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/Stream.java +8 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/ThermalStreamer.java +28 -0
- package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/VisualStreamer.java +18 -0
- package/android/Flir/src/main/java/flir/android/FlirCommands.java +136 -0
- package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +76 -75
- package/android/Flir/src/main/java/flir/android/FlirDownloadPackage.kt +16 -16
- package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
- package/android/Flir/src/main/java/flir/android/FlirManager.kt +477 -248
- package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
- package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -19
- package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +165 -117
- package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +1511 -0
- package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
- package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
- package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
- package/app.plugin.js +264 -264
- package/expo-module.config.json +5 -5
- package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +76 -76
- package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +108 -108
- package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +156 -156
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +53 -53
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +204 -204
- package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +82 -82
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +132 -132
- package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +29 -29
- package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +70 -70
- package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +192 -192
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +136 -136
- package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +264 -264
- package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +196 -196
- package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +26 -26
- package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +61 -61
- package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +208 -208
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +38 -38
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +147 -147
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +62 -62
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +49 -49
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +66 -66
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +69 -69
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +41 -41
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +46 -46
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +33 -33
- package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +160 -160
- package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +247 -247
- package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +27 -27
- package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +60 -60
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +36 -36
- package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +97 -97
- package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +55 -55
- package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +393 -393
- package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +35 -35
- package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +17 -17
- package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +99 -99
- package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +44 -44
- package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +109 -109
- package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +124 -124
- package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +40 -40
- package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +43 -43
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +77 -77
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +331 -331
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +56 -56
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +31 -31
- package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +92 -92
- package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +88 -88
- package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +73 -73
- package/ios/Flir/SDKLoader/FlirSDKLoader.m +13 -13
- package/ios/Flir/SDKLoader/FlirSDKLoader.swift +175 -175
- package/ios/Flir/src/FlirEventEmitter.h +12 -12
- package/ios/Flir/src/FlirEventEmitter.m +33 -33
- package/ios/Flir/src/FlirModule.h +10 -10
- package/ios/Flir/src/FlirModule.m +381 -381
- package/ios/Flir/src/FlirPreviewView.h +13 -13
- package/ios/Flir/src/FlirPreviewView.m +24 -24
- package/ios/Flir/src/FlirState.h +20 -20
- package/ios/Flir/src/FlirState.m +79 -79
- package/ios/Flir/src/FlirViewManager.h +9 -9
- package/ios/Flir/src/FlirViewManager.m +16 -16
- package/package.json +60 -60
- package/react-native.config.js +14 -14
- package/scripts/copy_ios_libs.sh +32 -32
- package/scripts/create_stubs.py +174 -174
- package/scripts/download-sdk.js +62 -62
- package/scripts/prepare-binaries.sh +171 -171
- package/sdk-manifest.json +37 -30
- package/src/FlirDownload.ts +78 -78
- package/src/index.d.ts +17 -17
- package/src/index.js +7 -7
- package/src/index.ts +7 -7
- package/android/Flir/src/main/java/flir/android/CameraHandler.java +0 -194
- package/android/Flir/src/main/java/flir/android/FlirController.kt +0 -11
- package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +0 -14
|
@@ -1,204 +1,204 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLIRCameraImport.h
|
|
3
|
-
//
|
|
4
|
-
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
-
//
|
|
6
|
-
// Initialize and perform import (list and import images).
|
|
7
|
-
|
|
8
|
-
#import <UIKit/UIKit.h>
|
|
9
|
-
|
|
10
|
-
#import "FLIRIdentity.h"
|
|
11
|
-
|
|
12
|
-
/** Describes different possible file locations in the cameras filesystem. */
|
|
13
|
-
typedef NS_ENUM(NSInteger, FLIRLocation)
|
|
14
|
-
{
|
|
15
|
-
/** Unknown root. */
|
|
16
|
-
FLIRLocationUnknown,
|
|
17
|
-
/** The active camera folder used for storing images. */
|
|
18
|
-
FLIRLocationActive,
|
|
19
|
-
/** Base folder for images (e.g. "DCIM" on the SD card). */
|
|
20
|
-
FLIRLocationImageBase
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/// Options for listing images
|
|
24
|
-
typedef NS_OPTIONS(NSInteger, FLIRListImagesFlags) {
|
|
25
|
-
/// recurse all found folders
|
|
26
|
-
FLIRListImagesRecursive = 1 << 0,
|
|
27
|
-
/// include hidden files
|
|
28
|
-
FLIRListImagesShowHidden = 1 << 1
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Abstract file path on camera's filesystem.
|
|
33
|
-
*/
|
|
34
|
-
@interface FLIRFileReference : NSObject
|
|
35
|
-
/** Defines base part of the file path. */
|
|
36
|
-
@property (nonatomic, readwrite) FLIRLocation location;
|
|
37
|
-
/** Relative path to location.
|
|
38
|
-
*
|
|
39
|
-
* Example: Both "image.jpg" and "/image.jpg" would refer to an image file in the folder of `location`, and both "" and "/" would refer to the folder of `location`.
|
|
40
|
-
* @note The path is expressed in a camera-compatible format using forward slashes (/) as the separator.
|
|
41
|
-
*/
|
|
42
|
-
@property (nonatomic, nonnull, readwrite) NSString *path;
|
|
43
|
-
@end
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Abstract directory path on camera's filesystem.
|
|
47
|
-
*/
|
|
48
|
-
@interface FLIRFolderReference : NSObject
|
|
49
|
-
/** Defines base part of the file path. */
|
|
50
|
-
@property (nonatomic, readwrite) FLIRLocation location;
|
|
51
|
-
/** Relative path to location.
|
|
52
|
-
*
|
|
53
|
-
* @note The path is expressed in a camera-compatible format using forward slashes (/) as the separator.
|
|
54
|
-
*/
|
|
55
|
-
@property (nonatomic, nonnull, readwrite) NSString *path;
|
|
56
|
-
|
|
57
|
-
@end
|
|
58
|
-
|
|
59
|
-
@class FLIRThumbnail;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Delegate to return events when files are found on a camera.
|
|
63
|
-
*/
|
|
64
|
-
@protocol FLIRCameraImportEventDelegate <NSObject>
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* This is called when a file is imported from the camera to the device.
|
|
68
|
-
* Note: you should NOT try to call `FLIRCamera.disconnect()` directly from this callback. Instead i.e. spawn a new thread.
|
|
69
|
-
*
|
|
70
|
-
* @param filename The path to a new file.
|
|
71
|
-
*/
|
|
72
|
-
- (void)fileAdded:(NSString * _Nonnull)filename;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* This is called when error occurs when downloading a file.
|
|
76
|
-
* Note: you should NOT try to call `FLIRCamera.disconnect()` directly from this callback. Instead i.e. spawn a new thread.
|
|
77
|
-
*
|
|
78
|
-
* @param e Dictionary with error information (error message and filename)
|
|
79
|
-
*/
|
|
80
|
-
- (void)importError:(NSDictionary<NSString *, NSString *> * _Nonnull)e;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* This is called to show the progress of downloading image files from the device.
|
|
85
|
-
* Note: you should NOT try to call `FLIRCamera.disconnect()` directly from this callback. Instead i.e. spawn a new thread.
|
|
86
|
-
*
|
|
87
|
-
* @param progress The number of bytes downloaded so far.
|
|
88
|
-
* @param total The total number of bytes of the file downloading.
|
|
89
|
-
* @param file The reference of the file currently being downloaded. Remember to compare files using `isEqual`.
|
|
90
|
-
*/
|
|
91
|
-
- (void)fileProgress:(NSInteger)progress total:(NSInteger)total file:(FLIRFileReference * _Nonnull)file;
|
|
92
|
-
|
|
93
|
-
@optional
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* This is called when a thumbnail is downloaded
|
|
97
|
-
*
|
|
98
|
-
* @param thumbnail A thumbnail with a reference to the original image and a thumbnail as a UIImage
|
|
99
|
-
*/
|
|
100
|
-
- (void)gotThumbnail:(FLIRThumbnail * _Nonnull)thumbnail;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* This is called when a file is deleted
|
|
104
|
-
* @param file The reference of the file that was deleted
|
|
105
|
-
*/
|
|
106
|
-
- (void)fileDeleted:(FLIRFileReference * _Nonnull)file;
|
|
107
|
-
|
|
108
|
-
@end
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Objects returned by listImages
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
@interface FLIRFileInfo : NSObject
|
|
115
|
-
/** The name of the file, without the path (like Unix's basename) */
|
|
116
|
-
@property (nonatomic, nonnull) NSString *name;
|
|
117
|
-
/** Abstract path to the file. */
|
|
118
|
-
@property (nonatomic, nonnull) FLIRFileReference *reference;
|
|
119
|
-
/** The time this file was last changed */
|
|
120
|
-
@property (nonatomic, nonnull) NSDateComponents *time;
|
|
121
|
-
/** The file size in bytes */
|
|
122
|
-
@property (nonatomic) long long size;
|
|
123
|
-
/** True if this file object represents a directory, false otherwise */
|
|
124
|
-
@property (nonatomic) bool isDirectory;
|
|
125
|
-
@end
|
|
126
|
-
|
|
127
|
-
@interface FLIRThumbnail : NSObject
|
|
128
|
-
/** File reference */
|
|
129
|
-
@property (nonatomic, nonnull) FLIRFileReference *reference;
|
|
130
|
-
/** Thumbnail */
|
|
131
|
-
@property (nonatomic, nonnull) UIImage* thumbnail;
|
|
132
|
-
@end
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* This class facilitates importing images from Camera.
|
|
136
|
-
*/
|
|
137
|
-
@interface FLIRCameraImport : NSObject
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Import files from camera.
|
|
141
|
-
*
|
|
142
|
-
* @param imageList List of files to import. Use `listImages` or `listImagesInWorkFolder` to obtain an image list.
|
|
143
|
-
* @param destPath Destination path.
|
|
144
|
-
*
|
|
145
|
-
* @return TRUE if all is OK.
|
|
146
|
-
*/
|
|
147
|
-
- (BOOL)startImport:(NSArray<FLIRFileReference *> * _Nonnull)imageList withDestPath:(NSString * _Nonnull)destPath;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Import thumbnails for files.
|
|
151
|
-
*
|
|
152
|
-
* @param imageList List of images. If a thumbnail is available, it will be imported, and the delegate will be called.
|
|
153
|
-
*/
|
|
154
|
-
- (void)startImportThumbnails:(NSArray<FLIRFileReference *> * _Nonnull)imageList;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Cancels the import session
|
|
158
|
-
*/
|
|
159
|
-
- (void)cancelImport;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* A delegate to handle the events in FLIRCameraImportEventDelegate.
|
|
163
|
-
*/
|
|
164
|
-
@property (nonatomic, weak, nullable) id<FLIRCameraImportEventDelegate> delegate;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* List all Flir files from default active folder in camera.
|
|
168
|
-
*
|
|
169
|
-
* @return Array with FLIRFileInfos.
|
|
170
|
-
*/
|
|
171
|
-
-(NSArray<FLIRFileInfo *> * _Nullable)listImages:(out NSError *_Nullable *_Nullable)error;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* List all Flir files in camera.
|
|
175
|
-
*
|
|
176
|
-
* @param folder the folder to list, nil will use the active default folder
|
|
177
|
-
* @param flags flags for recursive listing and including hidden folder
|
|
178
|
-
*
|
|
179
|
-
* @return Array with FLIRFileInfos.
|
|
180
|
-
*/
|
|
181
|
-
- (NSArray<FLIRFileInfo *> * _Nullable)listImages:(FLIRFileReference * _Nullable)folder
|
|
182
|
-
flags:(FLIRListImagesFlags)flags
|
|
183
|
-
error: (out NSError *_Nullable *_Nullable)error;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* List all Flir files from folder in camera.
|
|
187
|
-
*
|
|
188
|
-
* @param folder workfolder with files.
|
|
189
|
-
*
|
|
190
|
-
* @return Array with FLIRFileInfos.
|
|
191
|
-
*/
|
|
192
|
-
|
|
193
|
-
- (NSArray<FLIRFileInfo *> * _Nullable)listImagesInWorkFolder:(FLIRFileReference * _Nonnull)folder error:(out NSError *_Nullable *_Nullable)error;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Gets workfolders as a list of folders from the specified camera.
|
|
197
|
-
*
|
|
198
|
-
* @return Returns workfolders as a list of folders from the camera. List may be empty.
|
|
199
|
-
*/
|
|
200
|
-
- (NSArray<FLIRFileInfo *> * _Nullable)listWorkfolders:(out NSError *_Nullable *_Nullable)error;
|
|
201
|
-
|
|
202
|
-
- (void)startDeleteFiles:(NSArray<FLIRFileReference *> * _Nonnull)fileList;
|
|
203
|
-
|
|
204
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// FLIRCameraImport.h
|
|
3
|
+
//
|
|
4
|
+
// Copyright © 2019 Teledyne FLIR. All rights reserved.
|
|
5
|
+
//
|
|
6
|
+
// Initialize and perform import (list and import images).
|
|
7
|
+
|
|
8
|
+
#import <UIKit/UIKit.h>
|
|
9
|
+
|
|
10
|
+
#import "FLIRIdentity.h"
|
|
11
|
+
|
|
12
|
+
/** Describes different possible file locations in the cameras filesystem. */
|
|
13
|
+
typedef NS_ENUM(NSInteger, FLIRLocation)
|
|
14
|
+
{
|
|
15
|
+
/** Unknown root. */
|
|
16
|
+
FLIRLocationUnknown,
|
|
17
|
+
/** The active camera folder used for storing images. */
|
|
18
|
+
FLIRLocationActive,
|
|
19
|
+
/** Base folder for images (e.g. "DCIM" on the SD card). */
|
|
20
|
+
FLIRLocationImageBase
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/// Options for listing images
|
|
24
|
+
typedef NS_OPTIONS(NSInteger, FLIRListImagesFlags) {
|
|
25
|
+
/// recurse all found folders
|
|
26
|
+
FLIRListImagesRecursive = 1 << 0,
|
|
27
|
+
/// include hidden files
|
|
28
|
+
FLIRListImagesShowHidden = 1 << 1
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Abstract file path on camera's filesystem.
|
|
33
|
+
*/
|
|
34
|
+
@interface FLIRFileReference : NSObject
|
|
35
|
+
/** Defines base part of the file path. */
|
|
36
|
+
@property (nonatomic, readwrite) FLIRLocation location;
|
|
37
|
+
/** Relative path to location.
|
|
38
|
+
*
|
|
39
|
+
* Example: Both "image.jpg" and "/image.jpg" would refer to an image file in the folder of `location`, and both "" and "/" would refer to the folder of `location`.
|
|
40
|
+
* @note The path is expressed in a camera-compatible format using forward slashes (/) as the separator.
|
|
41
|
+
*/
|
|
42
|
+
@property (nonatomic, nonnull, readwrite) NSString *path;
|
|
43
|
+
@end
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Abstract directory path on camera's filesystem.
|
|
47
|
+
*/
|
|
48
|
+
@interface FLIRFolderReference : NSObject
|
|
49
|
+
/** Defines base part of the file path. */
|
|
50
|
+
@property (nonatomic, readwrite) FLIRLocation location;
|
|
51
|
+
/** Relative path to location.
|
|
52
|
+
*
|
|
53
|
+
* @note The path is expressed in a camera-compatible format using forward slashes (/) as the separator.
|
|
54
|
+
*/
|
|
55
|
+
@property (nonatomic, nonnull, readwrite) NSString *path;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
@class FLIRThumbnail;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Delegate to return events when files are found on a camera.
|
|
63
|
+
*/
|
|
64
|
+
@protocol FLIRCameraImportEventDelegate <NSObject>
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* This is called when a file is imported from the camera to the device.
|
|
68
|
+
* Note: you should NOT try to call `FLIRCamera.disconnect()` directly from this callback. Instead i.e. spawn a new thread.
|
|
69
|
+
*
|
|
70
|
+
* @param filename The path to a new file.
|
|
71
|
+
*/
|
|
72
|
+
- (void)fileAdded:(NSString * _Nonnull)filename;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* This is called when error occurs when downloading a file.
|
|
76
|
+
* Note: you should NOT try to call `FLIRCamera.disconnect()` directly from this callback. Instead i.e. spawn a new thread.
|
|
77
|
+
*
|
|
78
|
+
* @param e Dictionary with error information (error message and filename)
|
|
79
|
+
*/
|
|
80
|
+
- (void)importError:(NSDictionary<NSString *, NSString *> * _Nonnull)e;
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* This is called to show the progress of downloading image files from the device.
|
|
85
|
+
* Note: you should NOT try to call `FLIRCamera.disconnect()` directly from this callback. Instead i.e. spawn a new thread.
|
|
86
|
+
*
|
|
87
|
+
* @param progress The number of bytes downloaded so far.
|
|
88
|
+
* @param total The total number of bytes of the file downloading.
|
|
89
|
+
* @param file The reference of the file currently being downloaded. Remember to compare files using `isEqual`.
|
|
90
|
+
*/
|
|
91
|
+
- (void)fileProgress:(NSInteger)progress total:(NSInteger)total file:(FLIRFileReference * _Nonnull)file;
|
|
92
|
+
|
|
93
|
+
@optional
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* This is called when a thumbnail is downloaded
|
|
97
|
+
*
|
|
98
|
+
* @param thumbnail A thumbnail with a reference to the original image and a thumbnail as a UIImage
|
|
99
|
+
*/
|
|
100
|
+
- (void)gotThumbnail:(FLIRThumbnail * _Nonnull)thumbnail;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* This is called when a file is deleted
|
|
104
|
+
* @param file The reference of the file that was deleted
|
|
105
|
+
*/
|
|
106
|
+
- (void)fileDeleted:(FLIRFileReference * _Nonnull)file;
|
|
107
|
+
|
|
108
|
+
@end
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Objects returned by listImages
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
@interface FLIRFileInfo : NSObject
|
|
115
|
+
/** The name of the file, without the path (like Unix's basename) */
|
|
116
|
+
@property (nonatomic, nonnull) NSString *name;
|
|
117
|
+
/** Abstract path to the file. */
|
|
118
|
+
@property (nonatomic, nonnull) FLIRFileReference *reference;
|
|
119
|
+
/** The time this file was last changed */
|
|
120
|
+
@property (nonatomic, nonnull) NSDateComponents *time;
|
|
121
|
+
/** The file size in bytes */
|
|
122
|
+
@property (nonatomic) long long size;
|
|
123
|
+
/** True if this file object represents a directory, false otherwise */
|
|
124
|
+
@property (nonatomic) bool isDirectory;
|
|
125
|
+
@end
|
|
126
|
+
|
|
127
|
+
@interface FLIRThumbnail : NSObject
|
|
128
|
+
/** File reference */
|
|
129
|
+
@property (nonatomic, nonnull) FLIRFileReference *reference;
|
|
130
|
+
/** Thumbnail */
|
|
131
|
+
@property (nonatomic, nonnull) UIImage* thumbnail;
|
|
132
|
+
@end
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* This class facilitates importing images from Camera.
|
|
136
|
+
*/
|
|
137
|
+
@interface FLIRCameraImport : NSObject
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Import files from camera.
|
|
141
|
+
*
|
|
142
|
+
* @param imageList List of files to import. Use `listImages` or `listImagesInWorkFolder` to obtain an image list.
|
|
143
|
+
* @param destPath Destination path.
|
|
144
|
+
*
|
|
145
|
+
* @return TRUE if all is OK.
|
|
146
|
+
*/
|
|
147
|
+
- (BOOL)startImport:(NSArray<FLIRFileReference *> * _Nonnull)imageList withDestPath:(NSString * _Nonnull)destPath;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Import thumbnails for files.
|
|
151
|
+
*
|
|
152
|
+
* @param imageList List of images. If a thumbnail is available, it will be imported, and the delegate will be called.
|
|
153
|
+
*/
|
|
154
|
+
- (void)startImportThumbnails:(NSArray<FLIRFileReference *> * _Nonnull)imageList;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Cancels the import session
|
|
158
|
+
*/
|
|
159
|
+
- (void)cancelImport;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* A delegate to handle the events in FLIRCameraImportEventDelegate.
|
|
163
|
+
*/
|
|
164
|
+
@property (nonatomic, weak, nullable) id<FLIRCameraImportEventDelegate> delegate;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* List all Flir files from default active folder in camera.
|
|
168
|
+
*
|
|
169
|
+
* @return Array with FLIRFileInfos.
|
|
170
|
+
*/
|
|
171
|
+
-(NSArray<FLIRFileInfo *> * _Nullable)listImages:(out NSError *_Nullable *_Nullable)error;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* List all Flir files in camera.
|
|
175
|
+
*
|
|
176
|
+
* @param folder the folder to list, nil will use the active default folder
|
|
177
|
+
* @param flags flags for recursive listing and including hidden folder
|
|
178
|
+
*
|
|
179
|
+
* @return Array with FLIRFileInfos.
|
|
180
|
+
*/
|
|
181
|
+
- (NSArray<FLIRFileInfo *> * _Nullable)listImages:(FLIRFileReference * _Nullable)folder
|
|
182
|
+
flags:(FLIRListImagesFlags)flags
|
|
183
|
+
error: (out NSError *_Nullable *_Nullable)error;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* List all Flir files from folder in camera.
|
|
187
|
+
*
|
|
188
|
+
* @param folder workfolder with files.
|
|
189
|
+
*
|
|
190
|
+
* @return Array with FLIRFileInfos.
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
- (NSArray<FLIRFileInfo *> * _Nullable)listImagesInWorkFolder:(FLIRFileReference * _Nonnull)folder error:(out NSError *_Nullable *_Nullable)error;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Gets workfolders as a list of folders from the specified camera.
|
|
197
|
+
*
|
|
198
|
+
* @return Returns workfolders as a list of folders from the camera. List may be empty.
|
|
199
|
+
*/
|
|
200
|
+
- (NSArray<FLIRFileInfo *> * _Nullable)listWorkfolders:(out NSError *_Nullable *_Nullable)error;
|
|
201
|
+
|
|
202
|
+
- (void)startDeleteFiles:(NSArray<FLIRFileReference *> * _Nonnull)fileList;
|
|
203
|
+
|
|
204
|
+
@end
|