Enum Class OutdoorLocationOptions.BuildingDetector
- All Implemented Interfaces:
Serializable,Comparable<OutdoorLocationOptions.BuildingDetector>,Constable
- Enclosing class:
- OutdoorLocationOptions
If no suitable building is found, Outdoor Positioning will start and the detector will keep running in case the user enters a building. On the contrary, if a suitable building is detected, Indoor Positioning will start in it. If the user goes out of that building, the building detector will deselect it, stop the Indoor Positioning, start Outdoor Positioning and keep looking for a new suitable building.
A thorough description of each detector can be found here.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user will be geolocated inside the building whose BLE calibration signals match better with those perceived by the user smartphone.The user will be geolocated in the nearest building (based on the GPS distance) from those within a certain maximum range of 100 meters to the borders of the building canvas (floorplan).The user will be geolocated inside the building whose WiFi calibration signals match better with those perceived by the user smartphone.The user will be geolocated inside the building whose WiFi and BLE calibration signals match better with those perceived by the user smartphone. -
Method Summary
Modifier and TypeMethodDescriptionbooleanuseBle()Tells us whether BLE scans are used by the building detector.booleanuseWifi()Tells us whether WiFi scans are used by the building detector.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GPS_PROXIMITY
The user will be geolocated in the nearest building (based on the GPS distance) from those within a certain maximum range of 100 meters to the borders of the building canvas (floorplan).The detected building will only be deselected if the user goes out of the 100 range.
Requires
OutdoorLocationOptions.Builder.enableOutdoorPositions(boolean)to be true. Re-computes the GPS distance from the smartphone to the buildings at a maximum rate that depends on theOutdoorLocationOptions.getComputeInterval()value. -
WIFI_AND_BLE
The user will be geolocated inside the building whose WiFi and BLE calibration signals match better with those perceived by the user smartphone.This building will only be deselected if the user goes out of the WiFi and BLE range. In other words, she must go out until no WiFI and/or BLE signal from that building is received by the smartphone. After that, the building detection process will re-start.
-
WIFI
The user will be geolocated inside the building whose WiFi calibration signals match better with those perceived by the user smartphone.This building will only be deselected if the user goes out of the WiFi and BLE range. In other words, she must go out until no WiFI signal from that building is received by the smartphone. After that, the building detection process will re-start.
-
BLE
The user will be geolocated inside the building whose BLE calibration signals match better with those perceived by the user smartphone.This building will only be deselected if the user goes out of the WiFi and BLE range. In other words, she must go out until no BLE signal from that building is received by the smartphone. After that, the building detection process will re-start.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
useWifi
public boolean useWifi()Tells us whether WiFi scans are used by the building detector.WiFi scans are used by
WIFIandWIFI_AND_BLEstrategies.If both
useBle()anduseWifi()methods return false,GPS_PROXIMITYstrategy is being used.- Returns:
- Boolean
-
useBle
public boolean useBle()Tells us whether BLE scans are used by the building detector.BLE scans are used by
BLEandWIFI_AND_BLEstrategies.If both
useBle()anduseWifi()methods return false,GPS_PROXIMITYstrategy is being used.- Returns:
- Boolean
-