1
1
#if 0
2
2
#elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.1.3 (swiftlang-1100 .0.282.1 clang-1100 .0.33.15 )
3
+ // Generated by Apple Swift version 5.2.4 (swiftlang-1103 .0.32.9 clang-1103 .0.32.53 )
4
4
#pragma clang diagnostic push
5
5
#pragma clang diagnostic ignored "-Wgcc-compat"
6
6
@@ -84,6 +84,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
84
84
#else
85
85
# define SWIFT_NOESCAPE
86
86
#endif
87
+ #if __has_attribute(ns_consumed)
88
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
89
+ #else
90
+ # define SWIFT_RELEASES_ARGUMENT
91
+ #endif
87
92
#if __has_attribute(warn_unused_result)
88
93
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
89
94
#else
@@ -224,7 +229,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac14BeaconDelegate_")
224
229
- (void)didExitRegion:(Beaconstac * _Nonnull)beaconstac region:(NSString * _Nonnull)region;
225
230
@end
226
231
227
- typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, closed ) {
232
+ typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, open ) {
228
233
BeaconHardwareTypeUnknown = 0,
229
234
BeaconHardwareTypeIndoor = 1,
230
235
BeaconHardwareTypeOutdoor = 2,
@@ -269,11 +274,13 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
269
274
///
270
275
/// \param organization Optional, part of the Beaconstac dashborad.
271
276
///
277
+ /// \param offlineMode Optional, determines whether the SDK will fetch data from the API, default = false.
278
+ ///
272
279
/// \param delegate Optional, to listen to the BeaconDelegate callbacks, if you don’t provide the delegate we will startScanningForBeacons once we have required data.
273
280
///
274
281
/// \param completion this is called once the SDK gets initialised successfully or if any error occurs.
275
282
///
276
- + (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
283
+ + (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization offlineMode:(BOOL)offlineMode delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
277
284
/// Invoke this method if you want the SDK to scan for beacons. Based on the SDK configuration this determines when to start scanning beacons.
278
285
- (void)startScanningBeacons;
279
286
/// Invoke this method if you want the SDK to stop scanning in between the process.
@@ -329,7 +336,7 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
329
336
@end
330
337
331
338
/// Error codes if any error occurs inside SDK, the domain name is com.beaconstac.sdk.error
332
- typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed ) {
339
+ typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, open ) {
333
340
/// Indicate that the SDK is not configured yet for you to use.
334
341
BeaconstacSDKErrorSDKNotInitialized = -1001,
335
342
/// If the app doesn’t have authorization to use bluetooth or the Bluetooth is disabled in the Device.
@@ -364,12 +371,12 @@ typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed) {
364
371
BeaconstacSDKErrorInvalidRequest = -1016,
365
372
};
366
373
367
- typedef SWIFT_ENUM(NSInteger, HardwareState, closed ) {
374
+ typedef SWIFT_ENUM(NSInteger, HardwareState, open ) {
368
375
HardwareStateActive = 0,
369
376
HardwareStateSleeping = 1,
370
377
};
371
378
372
- typedef SWIFT_ENUM(int64_t, LatchLatency, closed ) {
379
+ typedef SWIFT_ENUM(int64_t, LatchLatency, open ) {
373
380
LatchLatencyLOW = 3,
374
381
LatchLatencyMEDIUM = 5,
375
382
LatchLatencyHIGH = 7,
@@ -500,7 +507,7 @@ SWIFT_CLASS("_TtC10Beaconstac7MNFCTag")
500
507
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
501
508
@end
502
509
503
- typedef SWIFT_ENUM(NSInteger, MNFCTagType, closed ) {
510
+ typedef SWIFT_ENUM(NSInteger, MNFCTagType, open ) {
504
511
MNFCTagTypeUnknown = 0,
505
512
MNFCTagTypeSticker = 7,
506
513
MNFCTagTypeKeycard = 8,
@@ -645,7 +652,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac15WebhookDelegate_")
645
652
@end
646
653
647
654
/// The iBeaconOption specifies how the SDK monitors and ranges beacon.
648
- typedef SWIFT_ENUM(NSInteger, iBeaconOption, closed ) {
655
+ typedef SWIFT_ENUM(NSInteger, iBeaconOption, open ) {
649
656
/// This ranges beacons in background only if the display wakes up. Requires always location Authorization
650
657
iBeaconOptionBackgroundRangeOnDisplayWakeUp = 0,
651
658
/// This ranges beacons only in foreground, requires when in use location Authorization
@@ -658,7 +665,7 @@ typedef SWIFT_ENUM(NSInteger, iBeaconOption, closed) {
658
665
#pragma clang diagnostic pop
659
666
660
667
#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
661
- // Generated by Apple Swift version 5.1.3 (swiftlang-1100 .0.282.1 clang-1100 .0.33.15 )
668
+ // Generated by Apple Swift version 5.2.4 (swiftlang-1103 .0.32.9 clang-1103 .0.32.53 )
662
669
#pragma clang diagnostic push
663
670
#pragma clang diagnostic ignored "-Wgcc-compat"
664
671
@@ -742,6 +749,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
742
749
#else
743
750
# define SWIFT_NOESCAPE
744
751
#endif
752
+ #if __has_attribute(ns_consumed)
753
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
754
+ #else
755
+ # define SWIFT_RELEASES_ARGUMENT
756
+ #endif
745
757
#if __has_attribute(warn_unused_result)
746
758
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
747
759
#else
@@ -882,7 +894,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac14BeaconDelegate_")
882
894
- (void)didExitRegion:(Beaconstac * _Nonnull)beaconstac region:(NSString * _Nonnull)region;
883
895
@end
884
896
885
- typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, closed ) {
897
+ typedef SWIFT_ENUM(NSInteger, BeaconHardwareType, open ) {
886
898
BeaconHardwareTypeUnknown = 0,
887
899
BeaconHardwareTypeIndoor = 1,
888
900
BeaconHardwareTypeOutdoor = 2,
@@ -927,11 +939,13 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
927
939
///
928
940
/// \param organization Optional, part of the Beaconstac dashborad.
929
941
///
942
+ /// \param offlineMode Optional, determines whether the SDK will fetch data from the API, default = false.
943
+ ///
930
944
/// \param delegate Optional, to listen to the BeaconDelegate callbacks, if you don’t provide the delegate we will startScanningForBeacons once we have required data.
931
945
///
932
946
/// \param completion this is called once the SDK gets initialised successfully or if any error occurs.
933
947
///
934
- + (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
948
+ + (void)sharedInstance:(NSString * _Nonnull)token ibeaconOption:(enum iBeaconOption)ibeaconOption organization:(NSNumber * _Nullable)organization offlineMode:(BOOL)offlineMode delegate:(id <BeaconDelegate> _Nullable)delegate completion:(void (^ _Nonnull)(Beaconstac * _Nullable, NSError * _Nullable))completion;
935
949
/// Invoke this method if you want the SDK to scan for beacons. Based on the SDK configuration this determines when to start scanning beacons.
936
950
- (void)startScanningBeacons;
937
951
/// Invoke this method if you want the SDK to stop scanning in between the process.
@@ -987,7 +1001,7 @@ SWIFT_CLASS("_TtC10Beaconstac10Beaconstac")
987
1001
@end
988
1002
989
1003
/// Error codes if any error occurs inside SDK, the domain name is com.beaconstac.sdk.error
990
- typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed ) {
1004
+ typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, open ) {
991
1005
/// Indicate that the SDK is not configured yet for you to use.
992
1006
BeaconstacSDKErrorSDKNotInitialized = -1001,
993
1007
/// If the app doesn’t have authorization to use bluetooth or the Bluetooth is disabled in the Device.
@@ -1022,12 +1036,12 @@ typedef SWIFT_ENUM(NSInteger, BeaconstacSDKError, closed) {
1022
1036
BeaconstacSDKErrorInvalidRequest = -1016,
1023
1037
};
1024
1038
1025
- typedef SWIFT_ENUM(NSInteger, HardwareState, closed ) {
1039
+ typedef SWIFT_ENUM(NSInteger, HardwareState, open ) {
1026
1040
HardwareStateActive = 0,
1027
1041
HardwareStateSleeping = 1,
1028
1042
};
1029
1043
1030
- typedef SWIFT_ENUM(int64_t, LatchLatency, closed ) {
1044
+ typedef SWIFT_ENUM(int64_t, LatchLatency, open ) {
1031
1045
LatchLatencyLOW = 3,
1032
1046
LatchLatencyMEDIUM = 5,
1033
1047
LatchLatencyHIGH = 7,
@@ -1158,7 +1172,7 @@ SWIFT_CLASS("_TtC10Beaconstac7MNFCTag")
1158
1172
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1159
1173
@end
1160
1174
1161
- typedef SWIFT_ENUM(NSInteger, MNFCTagType, closed ) {
1175
+ typedef SWIFT_ENUM(NSInteger, MNFCTagType, open ) {
1162
1176
MNFCTagTypeUnknown = 0,
1163
1177
MNFCTagTypeSticker = 7,
1164
1178
MNFCTagTypeKeycard = 8,
@@ -1303,7 +1317,7 @@ SWIFT_PROTOCOL("_TtP10Beaconstac15WebhookDelegate_")
1303
1317
@end
1304
1318
1305
1319
/// The iBeaconOption specifies how the SDK monitors and ranges beacon.
1306
- typedef SWIFT_ENUM(NSInteger, iBeaconOption, closed ) {
1320
+ typedef SWIFT_ENUM(NSInteger, iBeaconOption, open ) {
1307
1321
/// This ranges beacons in background only if the display wakes up. Requires always location Authorization
1308
1322
iBeaconOptionBackgroundRangeOnDisplayWakeUp = 0,
1309
1323
/// This ranges beacons only in foreground, requires when in use location Authorization
0 commit comments