@rodrigo7/react-native-beacons-manager 1.0.0

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.
Files changed (37) hide show
  1. package/.flowconfig +21 -0
  2. package/.nvmrc +1 -0
  3. package/.prettierignore +4 -0
  4. package/.prettierrc +12 -0
  5. package/.vscode/settings.json +24 -0
  6. package/LICENSE +21 -0
  7. package/README.md +246 -0
  8. package/ReactNativeBeaconsManager.podspec +13 -0
  9. package/android/.project +17 -0
  10. package/android/.settings/org.eclipse.buildship.core.prefs +2 -0
  11. package/android/build.gradle +108 -0
  12. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  13. package/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  14. package/android/gradle/wrapper/gradle.properties +2 -0
  15. package/android/gradlew +160 -0
  16. package/android/gradlew.bat +90 -0
  17. package/android/src/main/AndroidManifest.xml +8 -0
  18. package/android/src/main/java/com/mackentoch/beaconsandroid/BeaconsAndroidModule.java +457 -0
  19. package/android/src/main/java/com/mackentoch/beaconsandroid/BeaconsAndroidPackage.java +29 -0
  20. package/index.js +10 -0
  21. package/ios/RNiBeacon/RNiBeacon/ESSBeaconScanner.h +41 -0
  22. package/ios/RNiBeacon/RNiBeacon/ESSBeaconScanner.m +204 -0
  23. package/ios/RNiBeacon/RNiBeacon/ESSEddystone.h +117 -0
  24. package/ios/RNiBeacon/RNiBeacon/ESSEddystone.m +352 -0
  25. package/ios/RNiBeacon/RNiBeacon/ESSTimer.h +72 -0
  26. package/ios/RNiBeacon/RNiBeacon/ESSTimer.m +107 -0
  27. package/ios/RNiBeacon/RNiBeacon/RNiBeacon.h +16 -0
  28. package/ios/RNiBeacon/RNiBeacon/RNiBeacon.m +467 -0
  29. package/ios/RNiBeacon/RNiBeacon.xcodeproj/project.pbxproj +290 -0
  30. package/jsconfig.json +9 -0
  31. package/lib/next/module.types.js +169 -0
  32. package/lib/next/new.module.android.js +451 -0
  33. package/lib/next/new.module.ios.js +176 -0
  34. package/package.json +65 -0
  35. package/typings/index.d.ts +174 -0
  36. package/typings.json +7 -0
  37. package/yarn-error.log +4182 -0
@@ -0,0 +1,290 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 0D03EBE31E56B1E700C55E6B /* RNiBeacon.m in Sources */ = {isa = PBXBuildFile; fileRef = 0D03EBE21E56B1E700C55E6B /* RNiBeacon.m */; };
11
+ 0D03EBE41E56B1E700C55E6B /* RNiBeacon.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 0D03EBE11E56B1E700C55E6B /* RNiBeacon.h */; };
12
+ 80B8DD5E2057BB4900CB79DC /* ESSEddystone.m in Sources */ = {isa = PBXBuildFile; fileRef = 80B8DD582057BB4700CB79DC /* ESSEddystone.m */; };
13
+ 80B8DD5F2057BB4900CB79DC /* ESSBeaconScanner.m in Sources */ = {isa = PBXBuildFile; fileRef = 80B8DD592057BB4700CB79DC /* ESSBeaconScanner.m */; };
14
+ 80B8DD602057BB4900CB79DC /* ESSTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = 80B8DD5D2057BB4800CB79DC /* ESSTimer.m */; };
15
+ /* End PBXBuildFile section */
16
+
17
+ /* Begin PBXCopyFilesBuildPhase section */
18
+ 0D03EBDC1E56B1E600C55E6B /* CopyFiles */ = {
19
+ isa = PBXCopyFilesBuildPhase;
20
+ buildActionMask = 2147483647;
21
+ dstPath = "include/$(PRODUCT_NAME)";
22
+ dstSubfolderSpec = 16;
23
+ files = (
24
+ 0D03EBE41E56B1E700C55E6B /* RNiBeacon.h in CopyFiles */,
25
+ );
26
+ runOnlyForDeploymentPostprocessing = 0;
27
+ };
28
+ /* End PBXCopyFilesBuildPhase section */
29
+
30
+ /* Begin PBXFileReference section */
31
+ 0D03EBDE1E56B1E700C55E6B /* libRNiBeacon.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNiBeacon.a; sourceTree = BUILT_PRODUCTS_DIR; };
32
+ 0D03EBE11E56B1E700C55E6B /* RNiBeacon.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNiBeacon.h; sourceTree = "<group>"; };
33
+ 0D03EBE21E56B1E700C55E6B /* RNiBeacon.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNiBeacon.m; sourceTree = "<group>"; };
34
+ 80B8DD582057BB4700CB79DC /* ESSEddystone.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESSEddystone.m; sourceTree = "<group>"; };
35
+ 80B8DD592057BB4700CB79DC /* ESSBeaconScanner.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESSBeaconScanner.m; sourceTree = "<group>"; };
36
+ 80B8DD5A2057BB4800CB79DC /* ESSBeaconScanner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESSBeaconScanner.h; sourceTree = "<group>"; };
37
+ 80B8DD5B2057BB4800CB79DC /* ESSEddystone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESSEddystone.h; sourceTree = "<group>"; };
38
+ 80B8DD5C2057BB4800CB79DC /* ESSTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESSTimer.h; sourceTree = "<group>"; };
39
+ 80B8DD5D2057BB4800CB79DC /* ESSTimer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESSTimer.m; sourceTree = "<group>"; };
40
+ /* End PBXFileReference section */
41
+
42
+ /* Begin PBXFrameworksBuildPhase section */
43
+ 0D03EBDB1E56B1E600C55E6B /* Frameworks */ = {
44
+ isa = PBXFrameworksBuildPhase;
45
+ buildActionMask = 2147483647;
46
+ files = (
47
+ );
48
+ runOnlyForDeploymentPostprocessing = 0;
49
+ };
50
+ /* End PBXFrameworksBuildPhase section */
51
+
52
+ /* Begin PBXGroup section */
53
+ 0D03EBD51E56B1E600C55E6B = {
54
+ isa = PBXGroup;
55
+ children = (
56
+ 0D03EBE01E56B1E700C55E6B /* RNiBeacon */,
57
+ 0D03EBDF1E56B1E700C55E6B /* Products */,
58
+ );
59
+ sourceTree = "<group>";
60
+ };
61
+ 0D03EBDF1E56B1E700C55E6B /* Products */ = {
62
+ isa = PBXGroup;
63
+ children = (
64
+ 0D03EBDE1E56B1E700C55E6B /* libRNiBeacon.a */,
65
+ );
66
+ name = Products;
67
+ sourceTree = "<group>";
68
+ };
69
+ 0D03EBE01E56B1E700C55E6B /* RNiBeacon */ = {
70
+ isa = PBXGroup;
71
+ children = (
72
+ 80B8DD5A2057BB4800CB79DC /* ESSBeaconScanner.h */,
73
+ 80B8DD592057BB4700CB79DC /* ESSBeaconScanner.m */,
74
+ 80B8DD5B2057BB4800CB79DC /* ESSEddystone.h */,
75
+ 80B8DD582057BB4700CB79DC /* ESSEddystone.m */,
76
+ 80B8DD5C2057BB4800CB79DC /* ESSTimer.h */,
77
+ 80B8DD5D2057BB4800CB79DC /* ESSTimer.m */,
78
+ 0D03EBE11E56B1E700C55E6B /* RNiBeacon.h */,
79
+ 0D03EBE21E56B1E700C55E6B /* RNiBeacon.m */,
80
+ );
81
+ path = RNiBeacon;
82
+ sourceTree = "<group>";
83
+ };
84
+ /* End PBXGroup section */
85
+
86
+ /* Begin PBXNativeTarget section */
87
+ 0D03EBDD1E56B1E600C55E6B /* RNiBeacon */ = {
88
+ isa = PBXNativeTarget;
89
+ buildConfigurationList = 0D03EBE71E56B1E700C55E6B /* Build configuration list for PBXNativeTarget "RNiBeacon" */;
90
+ buildPhases = (
91
+ 0D03EBDA1E56B1E600C55E6B /* Sources */,
92
+ 0D03EBDB1E56B1E600C55E6B /* Frameworks */,
93
+ 0D03EBDC1E56B1E600C55E6B /* CopyFiles */,
94
+ );
95
+ buildRules = (
96
+ );
97
+ dependencies = (
98
+ );
99
+ name = RNiBeacon;
100
+ productName = RNiBeacon;
101
+ productReference = 0D03EBDE1E56B1E700C55E6B /* libRNiBeacon.a */;
102
+ productType = "com.apple.product-type.library.static";
103
+ };
104
+ /* End PBXNativeTarget section */
105
+
106
+ /* Begin PBXProject section */
107
+ 0D03EBD61E56B1E600C55E6B /* Project object */ = {
108
+ isa = PBXProject;
109
+ attributes = {
110
+ LastUpgradeCheck = 0820;
111
+ ORGANIZATIONNAME = "Erwan DATIN";
112
+ TargetAttributes = {
113
+ 0D03EBDD1E56B1E600C55E6B = {
114
+ CreatedOnToolsVersion = 8.2.1;
115
+ DevelopmentTeam = P297PK2LTE;
116
+ ProvisioningStyle = Automatic;
117
+ };
118
+ };
119
+ };
120
+ buildConfigurationList = 0D03EBD91E56B1E600C55E6B /* Build configuration list for PBXProject "RNiBeacon" */;
121
+ compatibilityVersion = "Xcode 3.2";
122
+ developmentRegion = English;
123
+ hasScannedForEncodings = 0;
124
+ knownRegions = (
125
+ en,
126
+ );
127
+ mainGroup = 0D03EBD51E56B1E600C55E6B;
128
+ productRefGroup = 0D03EBDF1E56B1E700C55E6B /* Products */;
129
+ projectDirPath = "";
130
+ projectRoot = "";
131
+ targets = (
132
+ 0D03EBDD1E56B1E600C55E6B /* RNiBeacon */,
133
+ );
134
+ };
135
+ /* End PBXProject section */
136
+
137
+ /* Begin PBXSourcesBuildPhase section */
138
+ 0D03EBDA1E56B1E600C55E6B /* Sources */ = {
139
+ isa = PBXSourcesBuildPhase;
140
+ buildActionMask = 2147483647;
141
+ files = (
142
+ 0D03EBE31E56B1E700C55E6B /* RNiBeacon.m in Sources */,
143
+ 80B8DD602057BB4900CB79DC /* ESSTimer.m in Sources */,
144
+ 80B8DD5F2057BB4900CB79DC /* ESSBeaconScanner.m in Sources */,
145
+ 80B8DD5E2057BB4900CB79DC /* ESSEddystone.m in Sources */,
146
+ );
147
+ runOnlyForDeploymentPostprocessing = 0;
148
+ };
149
+ /* End PBXSourcesBuildPhase section */
150
+
151
+ /* Begin XCBuildConfiguration section */
152
+ 0D03EBE51E56B1E700C55E6B /* Debug */ = {
153
+ isa = XCBuildConfiguration;
154
+ buildSettings = {
155
+ ALWAYS_SEARCH_USER_PATHS = NO;
156
+ CLANG_ANALYZER_NONNULL = YES;
157
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
158
+ CLANG_CXX_LIBRARY = "libc++";
159
+ CLANG_ENABLE_MODULES = YES;
160
+ CLANG_ENABLE_OBJC_ARC = YES;
161
+ CLANG_WARN_BOOL_CONVERSION = YES;
162
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
163
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
164
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
165
+ CLANG_WARN_EMPTY_BODY = YES;
166
+ CLANG_WARN_ENUM_CONVERSION = YES;
167
+ CLANG_WARN_INFINITE_RECURSION = YES;
168
+ CLANG_WARN_INT_CONVERSION = YES;
169
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
170
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
171
+ CLANG_WARN_UNREACHABLE_CODE = YES;
172
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
173
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
174
+ COPY_PHASE_STRIP = NO;
175
+ DEAD_CODE_STRIPPING = NO;
176
+ DEBUG_INFORMATION_FORMAT = dwarf;
177
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
178
+ ENABLE_TESTABILITY = YES;
179
+ GCC_C_LANGUAGE_STANDARD = gnu99;
180
+ GCC_DYNAMIC_NO_PIC = NO;
181
+ GCC_NO_COMMON_BLOCKS = YES;
182
+ GCC_OPTIMIZATION_LEVEL = 0;
183
+ GCC_PREPROCESSOR_DEFINITIONS = (
184
+ "DEBUG=1",
185
+ "$(inherited)",
186
+ );
187
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
188
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
189
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
190
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
191
+ GCC_WARN_UNUSED_FUNCTION = YES;
192
+ GCC_WARN_UNUSED_VARIABLE = YES;
193
+ IPHONEOS_DEPLOYMENT_TARGET = 9.2;
194
+ MTL_ENABLE_DEBUG_INFO = YES;
195
+ ONLY_ACTIVE_ARCH = YES;
196
+ SDKROOT = iphoneos;
197
+ };
198
+ name = Debug;
199
+ };
200
+ 0D03EBE61E56B1E700C55E6B /* Release */ = {
201
+ isa = XCBuildConfiguration;
202
+ buildSettings = {
203
+ ALWAYS_SEARCH_USER_PATHS = NO;
204
+ CLANG_ANALYZER_NONNULL = YES;
205
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
206
+ CLANG_CXX_LIBRARY = "libc++";
207
+ CLANG_ENABLE_MODULES = YES;
208
+ CLANG_ENABLE_OBJC_ARC = YES;
209
+ CLANG_WARN_BOOL_CONVERSION = YES;
210
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
211
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
212
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
213
+ CLANG_WARN_EMPTY_BODY = YES;
214
+ CLANG_WARN_ENUM_CONVERSION = YES;
215
+ CLANG_WARN_INFINITE_RECURSION = YES;
216
+ CLANG_WARN_INT_CONVERSION = YES;
217
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
218
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
219
+ CLANG_WARN_UNREACHABLE_CODE = YES;
220
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
221
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
222
+ COPY_PHASE_STRIP = NO;
223
+ DEAD_CODE_STRIPPING = NO;
224
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
225
+ ENABLE_NS_ASSERTIONS = NO;
226
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
227
+ GCC_C_LANGUAGE_STANDARD = gnu99;
228
+ GCC_NO_COMMON_BLOCKS = YES;
229
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
230
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
231
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
232
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
233
+ GCC_WARN_UNUSED_FUNCTION = YES;
234
+ GCC_WARN_UNUSED_VARIABLE = YES;
235
+ IPHONEOS_DEPLOYMENT_TARGET = 9.2;
236
+ MTL_ENABLE_DEBUG_INFO = NO;
237
+ SDKROOT = iphoneos;
238
+ VALIDATE_PRODUCT = YES;
239
+ };
240
+ name = Release;
241
+ };
242
+ 0D03EBE81E56B1E700C55E6B /* Debug */ = {
243
+ isa = XCBuildConfiguration;
244
+ buildSettings = {
245
+ DEAD_CODE_STRIPPING = NO;
246
+ DEVELOPMENT_TEAM = "";
247
+ HEADER_SEARCH_PATHS = "$(SRCROOT)/../../node_modules/react-native/React";
248
+ OTHER_LDFLAGS = "-ObjC";
249
+ PRODUCT_NAME = "$(TARGET_NAME)";
250
+ SKIP_INSTALL = YES;
251
+ };
252
+ name = Debug;
253
+ };
254
+ 0D03EBE91E56B1E700C55E6B /* Release */ = {
255
+ isa = XCBuildConfiguration;
256
+ buildSettings = {
257
+ DEAD_CODE_STRIPPING = NO;
258
+ DEVELOPMENT_TEAM = "";
259
+ HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../react-native/React";
260
+ OTHER_LDFLAGS = "-ObjC";
261
+ PRODUCT_NAME = "$(TARGET_NAME)";
262
+ SKIP_INSTALL = YES;
263
+ };
264
+ name = Release;
265
+ };
266
+ /* End XCBuildConfiguration section */
267
+
268
+ /* Begin XCConfigurationList section */
269
+ 0D03EBD91E56B1E600C55E6B /* Build configuration list for PBXProject "RNiBeacon" */ = {
270
+ isa = XCConfigurationList;
271
+ buildConfigurations = (
272
+ 0D03EBE51E56B1E700C55E6B /* Debug */,
273
+ 0D03EBE61E56B1E700C55E6B /* Release */,
274
+ );
275
+ defaultConfigurationIsVisible = 0;
276
+ defaultConfigurationName = Release;
277
+ };
278
+ 0D03EBE71E56B1E700C55E6B /* Build configuration list for PBXNativeTarget "RNiBeacon" */ = {
279
+ isa = XCConfigurationList;
280
+ buildConfigurations = (
281
+ 0D03EBE81E56B1E700C55E6B /* Debug */,
282
+ 0D03EBE91E56B1E700C55E6B /* Release */,
283
+ );
284
+ defaultConfigurationIsVisible = 0;
285
+ defaultConfigurationName = Release;
286
+ };
287
+ /* End XCConfigurationList section */
288
+ };
289
+ rootObject = 0D03EBD61E56B1E600C55E6B /* Project object */;
290
+ }
package/jsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "exclude": [
3
+ "node_modules",
4
+ "android",
5
+ "ios",
6
+ "images",
7
+ "example"
8
+ ]
9
+ }
@@ -0,0 +1,169 @@
1
+ // @flow
2
+
3
+ export type BeaconRegion = {
4
+ identifier: string,
5
+ uuid: string,
6
+ minor?: number,
7
+ major?: number,
8
+ proximity?: string,
9
+ rssi?: number,
10
+ // distance:
11
+ distance?: number, // android
12
+ accuracy?: number, // iOS
13
+ };
14
+
15
+ // iOS only
16
+ export type AuthorizationStatus =
17
+ | 'authorizedAlways'
18
+ | 'authorizedWhenInUse'
19
+ | 'denied'
20
+ | 'notDetermined'
21
+ | 'restricted';
22
+
23
+ // iOS only
24
+ type GetAuthorizationCallback = (status: AuthorizationStatus) => void;
25
+
26
+ // android only
27
+ export const PARSER_IBEACON: string =
28
+ 'm:0-3=4c000215,i:4-19,i:20-21,i:22-23,p:24-24';
29
+ export const PARSER_ESTIMOTE: string =
30
+ 'm:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24';
31
+ export const PARSER_ALTBEACON: string =
32
+ 'm:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25';
33
+ export const PARSER_EDDYSTONE_TLM: string =
34
+ 'x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15';
35
+ export const PARSER_EDDYSTONE_UID: string =
36
+ 's:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19';
37
+ export const PARSER_EDDYSTONE_URL: string =
38
+ 's:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-20v';
39
+
40
+ // android only
41
+ export const transmissionSupport: Array<string> = [
42
+ 'SUPPORTED',
43
+ 'NOT_SUPPORTED_MIN_SDK',
44
+ 'NOT_SUPPORTED_BLE',
45
+ 'DEPRECATED_NOT_SUPPORTED_MULTIPLE_ADVERTISEMENTS',
46
+ 'NOT_SUPPORTED_CANNOT_GET_ADVERTISER',
47
+ 'NOT_SUPPORTED_CANNOT_GET_ADVERTISER_MULTIPLE_ADVERTISEMENTS',
48
+ ];
49
+
50
+ export type Parser = string | number;
51
+
52
+ export type BeaconsManagerIOS = {
53
+ // specific to iOS:
54
+ requestAlwaysAuthorization: () => void,
55
+ requestWhenInUseAuthorization: () => void,
56
+ allowsBackgroundLocationUpdates: (allow: boolean) => void,
57
+ getAuthorizationStatus: (cb: GetAuthorizationCallback) => void,
58
+ getMonitoredRegions: (value?: any) => void,
59
+ startUpdatingLocation: () => void,
60
+ stopUpdatingLocation: () => void,
61
+ shouldDropEmptyRanges: (drop: boolean) => void,
62
+
63
+ // common with android:
64
+ startMonitoringForRegion: (region: BeaconRegion) => void,
65
+ startRangingBeaconsInRegion: (region: BeaconRegion) => void,
66
+ stopMonitoringForRegion: (region: BeaconRegion) => void,
67
+ stopRangingBeaconsInRegion: (region: BeaconRegion) => void,
68
+ requestStateForRegion: (region: BeaconRegion) => void,
69
+ };
70
+
71
+ export type BeaconsManagerANDROID = {
72
+ // specific to android:
73
+ setHardwareEqualityEnforced: (flag: boolean) => void,
74
+
75
+ addParser: (parser: Parser, resolve: () => any, reject: () => any) => void,
76
+ addParsersListToDetection: (
77
+ parsers: Array<Parser>,
78
+ resolve: () => any,
79
+ reject: () => any,
80
+ ) => void,
81
+ removeParser: (parser: Parser, resolve: () => any, reject: () => any) => void,
82
+ removeParsersListToDetection: (
83
+ parsers: Array<Parser>,
84
+ resolve: () => any,
85
+ reject: () => any,
86
+ ) => void,
87
+
88
+ detectIBeacons: () => Promise<any>,
89
+ addIBeaconsDetection: () => Promise<any>,
90
+ removeIBeaconsDetection: () => Promise<any>,
91
+
92
+ detectAltBeacons: () => Promise<any>,
93
+ addAltBeaconsDetection: () => Promise<any>,
94
+ removeAltBeaconsDetection: () => Promise<any>,
95
+
96
+ detectAltBeacons: () => Promise<any>,
97
+ addAltBeaconsDetection: () => Promise<any>,
98
+ removeAltBeaconsDetection: () => Promise<any>,
99
+
100
+ detectEstimotes: () => Promise<any>,
101
+ addEstimotesDetection: () => Promise<any>,
102
+ removeEstimotesDetection: () => Promise<any>,
103
+
104
+ detectEddystoneUID: () => Promise<any>,
105
+ addEddystoneUIDDetection: () => Promise<any>,
106
+ removeEddystoneUIDDetection: () => Promise<any>,
107
+
108
+ detectEddystoneTLM: () => Promise<any>,
109
+ addEddystoneTLMDetection: () => Promise<any>,
110
+ removeEddystoneTLMDetection: () => Promise<any>,
111
+
112
+ detectEddystoneURL: () => Promise<any>,
113
+ addEddystoneURLDetection: () => Promise<any>,
114
+ removeEddystoneURLDetection: () => Promise<any>,
115
+
116
+ detectCustomBeaconLayout: () => Promise<any>,
117
+ addCustomBeaconLayoutDetection: () => Promise<any>,
118
+ removeCustomBeaconLayoutDetection: () => Promise<any>,
119
+
120
+ setBackgroundScanPeriod: (period: number) => void,
121
+ setBackgroundBetweenScanPeriod: (period: number) => void,
122
+ setForegroundScanPeriod: (period: number) => void,
123
+ setRssiFilter: (filterType: number, avgModifier: number) => void,
124
+ getRangedRegions: (value?: any) => void,
125
+ ARMA_RSSI_FILTER: string,
126
+ RUNNING_AVG_RSSI_FILTER: string,
127
+ getMonitoredRegions: (value?: any) => void,
128
+ checkTransmissionSupported: (status: any) => any,
129
+
130
+ // common with iOS:
131
+ startMonitoring: (
132
+ regionId: string,
133
+ uuid: string,
134
+ minor?: number,
135
+ major?: number,
136
+ resolve: () => any,
137
+ reject: () => any,
138
+ ) => void,
139
+
140
+ startRanging: (
141
+ regionId: string,
142
+ uuid?: string,
143
+ resolve: () => any,
144
+ reject: () => any,
145
+ ) => void,
146
+
147
+ stopMonitoring: (
148
+ regionId: string,
149
+ uuid: string,
150
+ minor?: number,
151
+ major?: number,
152
+ resolve: () => any,
153
+ reject: () => any,
154
+ ) => void,
155
+
156
+ stopRanging: (
157
+ regionId: string,
158
+ uuid?: string,
159
+ resolve: () => any,
160
+ reject: () => any,
161
+ ) => void,
162
+
163
+ requestStateForRegion: (
164
+ regionId: string,
165
+ uuid?: string,
166
+ minor?: number,
167
+ major?: number,
168
+ ) => void,
169
+ };