com.voltmx.Beacon
You cannot create Beacon objects directly. Beacon objects are created by native platforms only.
The Beacon object provides the following API elements.
Methods
The Beacon class has the following methods.
getAccuracy
The accuracy of the proximity value, measured in meters from the beacon.
Syntax
Input Parameters
None.
Example
Return Values
Returns a number that specifies the accuracy of the proximity value.
Remarks
Indicates the one sigma horizontal accuracy in meters. Use this property to differentiate between beacons with the same proximity value. Do not use it to identify a precise location for the beacon. Accuracy values may fluctuate due to RF interference.
A negative value in this property signifies that the actual accuracy could not be determined. For more information, see Apple Documentation.
Platform Availability
Available only on iOS
getMajor
The most significant value in the beacon. A major value, which is a number that can be used to group related beacons that have the same proximity UUID.
Syntax
Input Parameters
None.
Example
Return Values
Returns a number containing the most significant value in the beacon.
Platform Availability
Available only on iOS
getMinor
The least significant value in the beacon. A minor value, which is a number that differentiates beacons with the same proximity UUID and major value.
Syntax
Input Parameters
None.
Example
Return Values
Returns a number that specifies the least significant value in the beacon.
Platform Availability
Available only on iOS
getProximity
The proximity value gives a general sense of the relative distance to the beacon. Use it to quickly identify beacons that are nearer to the user rather than farther away.
Syntax
Input Parameters
None
Example
Return Values
Returns a string that can be any of the following values.
- BeaconProximityUnknown - The proximity of the beacon could not be determined.
- BeaconProximityImmediate - The beacon is in the user’s immediate vicinity.
- BeaconProximityNear - The beacon is relatively close to the user.
- BeaconProximityFar - The beacon is far away.
Platform Availability
Available only on iOS
getProximityUUIDString
The proximity UUID (string representation) of the beacon.
Syntax
Input Parameters
None.
Example
Return Values
String
Returns a string that holds the proximity UUID of the beacon.
Remarks
A proximity UUID (universally unique identifier), which is a 128-bit value that uniquely identifies one or more beacons as a certain type or from a certain organization.
Platform Availability
Available only on iOS
getrssi
The received signal strength of the beacon, measured in decibels.
Syntax
Input Parameters
None.
Example
Return Values
Returns a number containing the signal strength in decibels.
Remarks
The value returned by this method is the average RSSI value of the samples received since the range of the beacon was last reported to your app.
Platform Availability
Available only on iOS