react-native-flic2 0.3.24 → 0.3.26
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/ios/Flic2.xcodeproj/project.pbxproj +8 -4
- package/ios/Flic2.xcworkspace/xcuserdata/wesdewitte.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/package.json +1 -1
- package/react-native-flic2.podspec +2 -2
- package/ios/flic2lib.xcframework/Info.plist +0 -56
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-maccatalyst/flic2lib.framework/Versions/A/Headers/FLICButton.h +0 -335
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-maccatalyst/flic2lib.framework/Versions/A/Headers/FLICEnums.h +0 -315
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-maccatalyst/flic2lib.framework/Versions/A/Headers/FLICManager.h +0 -171
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-maccatalyst/flic2lib.framework/Versions/A/Headers/flic2lib.h +0 -19
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-maccatalyst/flic2lib.framework/Versions/A/Modules/module.modulemap +0 -6
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-maccatalyst/flic2lib.framework/Versions/A/Resources/Info.plist +0 -50
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-maccatalyst/flic2lib.framework/Versions/A/flic2lib +0 -0
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Headers/FLICButton.h +0 -335
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Headers/FLICEnums.h +0 -315
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Headers/FLICManager.h +0 -171
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Headers/flic2lib.h +0 -19
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Info.plist +0 -0
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Modules/module.modulemap +0 -6
- package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/flic2lib +0 -0
- /package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/Headers/FLICButton.h +0 -0
- /package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/Headers/FLICEnums.h +0 -0
- /package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/Headers/FLICManager.h +0 -0
- /package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/Headers/flic2lib.h +0 -0
- /package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/Info.plist +0 -0
- /package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/Modules/module.modulemap +0 -0
- /package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/flic2lib +0 -0
package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Headers/FLICManager.h
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// FLICManager.h
|
|
3
|
-
// flic2lib
|
|
4
|
-
//
|
|
5
|
-
// Created by Anton Meier on 2019-04-11.
|
|
6
|
-
// Copyright © 2020 Shortcut Labs. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <CoreBluetooth/CoreBluetooth.h>
|
|
11
|
-
#import "FLICButton.h"
|
|
12
|
-
|
|
13
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
-
|
|
15
|
-
@protocol FLICManagerDelegate;
|
|
16
|
-
|
|
17
|
-
/*!
|
|
18
|
-
* @class FLICManager
|
|
19
|
-
*
|
|
20
|
-
* @discussion This interface is intended to be used as a singleton. It keeps track of all the buttons that have been paired with this particular app and restores them on each
|
|
21
|
-
* application launch.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
@interface FLICManager : NSObject
|
|
25
|
-
|
|
26
|
-
/*!
|
|
27
|
-
* @property delegate
|
|
28
|
-
*
|
|
29
|
-
* @discussion The delegate that all the FLICManagerDelegate events will be sent to. Usually this is configured only once when the application is first launched, using the
|
|
30
|
-
* configureWithDelegate:buttonDelegate:background: method.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
@property(weak, nonatomic, nullable) id<FLICManagerDelegate> delegate;
|
|
34
|
-
|
|
35
|
-
/*!
|
|
36
|
-
* @property buttonDelegate
|
|
37
|
-
*
|
|
38
|
-
* @discussion Once set, this delegate will automatically be set to every button instance on each application launch. This will also be assigned to new buttons that are discovered
|
|
39
|
-
* using the scanForButtonsWithStateChangeHandler:completionHandler method. Using this delegate also ensures that the click events are delivered as fast as possible
|
|
40
|
-
* when an application is restored in the background.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
@property(weak, nonatomic, nullable) id<FLICButtonDelegate> buttonDelegate;
|
|
44
|
-
|
|
45
|
-
/*!
|
|
46
|
-
* @property state
|
|
47
|
-
*
|
|
48
|
-
* @discussion This is the state of the Flic manager. This state closely resembles the CBManager state of Apple's CoreBluetooth framework. You will only be able to communicate with
|
|
49
|
-
* Flic buttons while the manager is in the FlicManagerStatePoweredOn state.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
@property(readonly) FLICManagerState state;
|
|
53
|
-
|
|
54
|
-
/*!
|
|
55
|
-
* @property scanning
|
|
56
|
-
*
|
|
57
|
-
* @discussion Let's you know if a scan is currently running or not. Reading this value will not affect a scan.
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
@property(nonatomic, readonly) BOOL isScanning;
|
|
61
|
-
|
|
62
|
-
/*!
|
|
63
|
-
* @method sharedManager
|
|
64
|
-
*
|
|
65
|
-
* @discussion This class method return the singleton manager, assuming that it has been configured first using the configureWithDelegate:buttonDelegate:background: method first,
|
|
66
|
-
* otherwise nil is returned.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
+ (instancetype _Nullable)sharedManager;
|
|
70
|
-
|
|
71
|
-
/*!
|
|
72
|
-
* @method
|
|
73
|
-
*
|
|
74
|
-
* @param delegate The delegate to be used with the manager singleton.
|
|
75
|
-
* @param buttonDelegate The delegate to be automatically assigned to each FLICButton instance.
|
|
76
|
-
* @param background Whether or not you intend to use this application in the background.
|
|
77
|
-
*
|
|
78
|
-
* @discussion This configuration method must be called before the manager can be used. It is recommended that this is done as soon as possible after your application has launched
|
|
79
|
-
* in order to minimize the delay of any pending click events. The flic2lib officially only support iOS 12 and up, however, to make it easier for the developer, the framework
|
|
80
|
-
* is built with a target of iOS 9 and contains slices for both arm64 and armv7. This means that you will be able to include, and load, the framework in apps that support iOS 9.
|
|
81
|
-
* However, if you try to configure the manager on a device running iOS 11, or below, then the manager state will switch to FLICManagerStateUnsupported. A good place
|
|
82
|
-
* to handle this would be in the manager:didUpdateSate: method.
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
+ (instancetype _Nullable)configureWithDelegate:(id<FLICManagerDelegate> _Nullable)delegate
|
|
86
|
-
buttonDelegate:(id<FLICButtonDelegate> _Nullable)buttonDelegate
|
|
87
|
-
background:(BOOL)background;
|
|
88
|
-
|
|
89
|
-
/*!
|
|
90
|
-
* @method buttons
|
|
91
|
-
*
|
|
92
|
-
* @discussion This array will contain every button that is currently paired with this application. Each button will be added to the list after a call to
|
|
93
|
-
* scanForButtonsWithStateChangeHandler:completionHandler: has completed without error. It is important to know that you may not try to access this list until after the
|
|
94
|
-
* managerDidRestoreState: method has been sent to the manager delegate.
|
|
95
|
-
*
|
|
96
|
-
*/
|
|
97
|
-
- (NSArray<FLICButton *> *)buttons;
|
|
98
|
-
|
|
99
|
-
/*!
|
|
100
|
-
* @method forgetButton:
|
|
101
|
-
*
|
|
102
|
-
* @param button The button that you wish to delete from the manager.
|
|
103
|
-
* @param completion This returns the identifier of the button instance that was just removed along with an error, if needed.
|
|
104
|
-
*
|
|
105
|
-
* @discussion This will delete this button from the manager. After a successful call to this method you will no longer be able to communicate with the associated Flic button unless you
|
|
106
|
-
* pair it again using the scanForButtonsWithStateChangeHandler:completionHandler:. On completion, the button will no longer be included in the manager's buttons array.
|
|
107
|
-
* After a successful call to this method, you should discard of any references to that particular Flic button object. If you try to forget a button that is already forgotten, then
|
|
108
|
-
* you will get an error with the FLICErrorAlreadyForgotten code.
|
|
109
|
-
*
|
|
110
|
-
*/
|
|
111
|
-
- (void)forgetButton:(FLICButton *)button completion:(void (^)(NSUUID *uuid, NSError * _Nullable error))completion;
|
|
112
|
-
|
|
113
|
-
/*!
|
|
114
|
-
* @method
|
|
115
|
-
*
|
|
116
|
-
* @param stateHandler This handler returns status events that lets you know what the scanner is currently doing. The purpose of this handler is to provide a predefined states where
|
|
117
|
-
* you may update your application UI.
|
|
118
|
-
* @param completion The completion handler will always run and if successful it will return a new FLICButton instance, otherwise it will provide you with an error.
|
|
119
|
-
*
|
|
120
|
-
* @discussion This method lets you add new Flic buttons to the manager. The scan flow is automated and the stateHandler will let you know what information you should provide to
|
|
121
|
-
* your application end user. If you try to scan for buttons while running on an iOS version below the mimimun requirement, then you will get an error with the
|
|
122
|
-
* FLICErrorUnsupportedOSVersion error code.
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
125
|
-
- (void)scanForButtonsWithStateChangeHandler:(void (^)(FLICButtonScannerStatusEvent event))stateHandler
|
|
126
|
-
completion:(void (^)(FLICButton * _Nullable button, NSError * _Nullable error))completion;
|
|
127
|
-
|
|
128
|
-
/*!
|
|
129
|
-
* @method stopScan
|
|
130
|
-
*
|
|
131
|
-
* @discussion Cancel an ongoing button scan. This will result in a scan completion with an error.
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
134
|
-
- (void)stopScan;
|
|
135
|
-
|
|
136
|
-
@end
|
|
137
|
-
|
|
138
|
-
/*!
|
|
139
|
-
* @protocol FLICManagerDelegate
|
|
140
|
-
*
|
|
141
|
-
* @discussion The delegate of a FLICManager instance must adopt the FLICManagerDelegate protocol. All calls to the delegate methods will be on the main dispatch queue.
|
|
142
|
-
*
|
|
143
|
-
*/
|
|
144
|
-
@protocol FLICManagerDelegate <NSObject>
|
|
145
|
-
|
|
146
|
-
/*!
|
|
147
|
-
* @method managerDidRestoreState:
|
|
148
|
-
*
|
|
149
|
-
* @param manager The manager instance that the event originates from. Since this is intended to be used as a singleton, there should only ever be one manager instance.
|
|
150
|
-
*
|
|
151
|
-
* @discussion This is called once the manager has been restored. This means that all the FLICButton instances from your previous session are restored as well. After this method
|
|
152
|
-
* has been called you may start using the manager and communicate with the Flic buttons. This method will only be called once on each application launch.
|
|
153
|
-
*
|
|
154
|
-
*/
|
|
155
|
-
- (void)managerDidRestoreState:(FLICManager *)manager;
|
|
156
|
-
|
|
157
|
-
/*!
|
|
158
|
-
* @method manager:didUpdateState:
|
|
159
|
-
*
|
|
160
|
-
* @param manager The manager instance that the event originates from. Since this is intended to be used as a singleton, there should only ever be one manager instance.
|
|
161
|
-
* @param state The state of the Flic manager singleton.
|
|
162
|
-
*
|
|
163
|
-
* @discussion Each time the state of the Flic manager changes, you will get this callback. Usually this is related to bluetooth state changes on the iOS device. It is also guaranteed to
|
|
164
|
-
* be called at least once after the manager has been configured.
|
|
165
|
-
*
|
|
166
|
-
*/
|
|
167
|
-
- (void)manager:(FLICManager *)manager didUpdateState:(FLICManagerState)state;
|
|
168
|
-
|
|
169
|
-
@end
|
|
170
|
-
|
|
171
|
-
NS_ASSUME_NONNULL_END
|
package/ios/flic2lib.xcframework/ios-arm64_x86_64-simulator/flic2lib.framework/Headers/flic2lib.h
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// flic2lib.h
|
|
3
|
-
// flic2lib
|
|
4
|
-
//
|
|
5
|
-
// Created by Anton Meier on 2019-04-10.
|
|
6
|
-
// Copyright © 2020 Shortcut Labs. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
|
|
11
|
-
#import <flic2lib/FLICEnums.h>
|
|
12
|
-
#import <flic2lib/FLICManager.h>
|
|
13
|
-
#import <flic2lib/FLICButton.h>
|
|
14
|
-
|
|
15
|
-
//! Project version number for flic2lib.
|
|
16
|
-
FOUNDATION_EXPORT double flic2libVersionNumber;
|
|
17
|
-
|
|
18
|
-
//! Project version string for flic2lib.
|
|
19
|
-
FOUNDATION_EXPORT const unsigned char flic2libVersionString[];
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/ios/{flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework → flic2lib.framework}/flic2lib
RENAMED
|
File without changes
|