ilabs-flir 2.2.20 → 2.2.21
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 +1 -1
- package/ios/Flir/src/FlirPublic.h +11 -29
- package/package.json +1 -1
package/Flir.podspec
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
// FlirPublic.h
|
|
2
2
|
// Public C/ObjC API for the Flir library
|
|
3
|
+
//
|
|
4
|
+
// NOTE: FlirDeviceInfo and FlirManager are defined in FlirManager.swift.
|
|
5
|
+
// The Swift compiler generates Flir-Swift.h which exports these classes to Objective-C.
|
|
6
|
+
// Do NOT define duplicate @interface declarations here to avoid "Duplicate interface" errors.
|
|
3
7
|
|
|
4
8
|
#import <Foundation/Foundation.h>
|
|
5
9
|
#import <UIKit/UIKit.h>
|
|
6
10
|
|
|
7
11
|
NS_ASSUME_NONNULL_BEGIN
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@property (nonatomic, readonly) BOOL isEmulator;
|
|
14
|
-
- (NSDictionary *)toDictionary;
|
|
15
|
-
@end
|
|
13
|
+
// Forward declarations for Swift classes (defined in FlirManager.swift)
|
|
14
|
+
// Use the Flir-Swift.h import in implementation files to access these.
|
|
15
|
+
@class FlirDeviceInfo;
|
|
16
|
+
@class FlirManager;
|
|
16
17
|
|
|
18
|
+
/// Protocol for receiving FLIR events from FlirManager
|
|
19
|
+
/// Implemented by FlirModule.m to bridge events to React Native
|
|
17
20
|
@protocol FlirPublicDelegate <NSObject>
|
|
18
21
|
- (void)onDevicesFound:(NSArray<FlirDeviceInfo *> *)devices;
|
|
19
22
|
- (void)onDeviceConnected:(FlirDeviceInfo *)device;
|
|
@@ -25,26 +28,5 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
25
28
|
- (void)onStateChanged:(NSString *)state isConnected:(BOOL)isConnected isStreaming:(BOOL)isStreaming isEmulator:(BOOL)isEmulator;
|
|
26
29
|
@end
|
|
27
30
|
|
|
28
|
-
@interface FlirManager : NSObject
|
|
29
|
-
+ (instancetype)shared NS_SWIFT_NAME(shared);
|
|
30
|
-
|
|
31
|
-
@property (nonatomic, weak, nullable) id<FlirPublicDelegate> delegate;
|
|
32
|
-
|
|
33
|
-
// Lifecycle
|
|
34
|
-
- (void)startDiscovery;
|
|
35
|
-
- (void)stopDiscovery;
|
|
36
|
-
- (void)connectToDevice:(NSString *)deviceId;
|
|
37
|
-
- (void)disconnect;
|
|
38
|
-
- (void)stop;
|
|
39
|
-
|
|
40
|
-
// Frame accessors
|
|
41
|
-
- (nullable NSDictionary *)latestFrameBitmapBase64; // { width, height, bytesPerRow, dataBase64 }
|
|
42
|
-
- (nullable NSString *)latestFrameBase64;
|
|
43
|
-
|
|
44
|
-
// Utilities
|
|
45
|
-
- (NSInteger)getBatteryLevel;
|
|
46
|
-
- (BOOL)isBatteryCharging;
|
|
47
|
-
|
|
48
|
-
@end
|
|
49
|
-
|
|
50
31
|
NS_ASSUME_NONNULL_END
|
|
32
|
+
|