forked from Driversnote-Dev/react-native-kontaktio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configurations.ts
49 lines (43 loc) · 1.11 KB
/
configurations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export const IBEACON = 'IBEACON';
export const EDDYSTONE = 'EDDYSTONE';
export const SECURE_PROFILE = 'SECURE_PROFILE';
export const scanMode = {
LOW_POWER: 0,
BALANCED: 1,
LOW_LATENCY: 2,
};
export const scanPeriod = {
RANGING: 'RANGING',
MONITORING: 'MONITORING',
// Default values equal configuration MONITORING
create: ({ activePeriod = 8000, passivePeriod = 30000 }) => ({
activePeriod,
passivePeriod,
}),
};
export const activityCheckConfiguration = {
DISABLED: 'DISABLED',
MINIMAL: 'MINIMAL',
DEFAULT: 'DEFAULT',
// Default values equal configuration MINIMAL
create: ({ inactivityTimeout = 3000, checkPeriod = 1000 }) => ({
inactivityTimeout,
checkPeriod,
}),
};
export const forceScanConfiguration = {
DISABLED: 'DISABLED',
MINIMAL: 'MINIMAL',
// Default values equal configuration MINIMAL
create: ({ forceScanActivePeriod = 1000, forceScanPassivePeriod = 500 }) => ({
forceScanActivePeriod,
forceScanPassivePeriod,
}),
};
export const monitoringEnabled = {
TRUE: true,
FALSE: false,
};
export const monitoringSyncInterval = {
DEFAULT: 10, // 10 seconds
};