Gallagher Mobile Connect SDK
|
Public Member Functions | |
ReaderDistance (int value) | |
int | getValue () |
Static Public Member Functions | |
static ReaderDistance | parse (int i) |
static ReaderDistance | calculate (double txPower, double autoConnectPathLoss, double manualConnectPathLoss, double measuredPathLoss) |
Public Attributes | |
NEAR =(0) | |
MEDIUM =(1) | |
FAR =(2) | |
If Bluetooth signals are visible from multiple readers at a given physical location, ReaderDistance can be used to infer which reader is physically closer to the phone.
Note: These values do not adhere to any particular unit of measure, and two phones in the same play may disagree on values for a given reader due to the margin of error inherent in measuring a Bluetooth signal. If you use them, you should only do so in an abstract way, such as showing different colored icons for a near vs far reader.
com.gallagher.security.mobileaccess.ReaderDistance.ReaderDistance | ( | int | value | ) |
|
static |
int com.gallagher.security.mobileaccess.ReaderDistance.getValue | ( | ) |
|
static |
Returns null if the int can't be parsed
com.gallagher.security.mobileaccess.ReaderDistance.FAR =(2) |
The SDK believes this reader is far away
com.gallagher.security.mobileaccess.ReaderDistance.MEDIUM =(1) |
The SDK believes this reader is a medium distance away
com.gallagher.security.mobileaccess.ReaderDistance.NEAR =(0) |
The SDK believes this reader is close to the phone