public class KitBeacon extends Object
Constructor and Description |
---|
KitBeacon() |
Modifier and Type | Method and Description |
---|---|
static KitBeacon |
bestMatchingKitBeacon(List kitBeacons,
Beacon beacon) |
static KitBeacon |
bestMatchingKitBeacon(List kitBeacons,
Region region) |
static KitBeacon |
fromJson(JSONObject json) |
Map |
getAttributes() |
String |
getIdentifier() |
Double |
getLatitude() |
Double |
getLongitude() |
Integer |
getMajor() |
Integer |
getMinor() |
String |
getName() |
String |
getProximityUuid() |
Boolean |
isMonitoringEnabled() |
Boolean |
isRangingEnabled() |
Region |
to_region()
Deprecated.
As of release 0.5.0. This method should not be used as it is part of the
internal implementation and will be dropped in a future release. If you need to convert
a KitBeacon to a Region, you may construct a new region using the identifiers from the
KitBeacon.
|
public static KitBeacon fromJson(JSONObject json) throws JSONException
JSONException
public Integer getMajor()
public Integer getMinor()
public Map getAttributes()
public String getProximityUuid()
public Double getLatitude()
public Double getLongitude()
public String getName()
public Boolean isMonitoringEnabled()
public Boolean isRangingEnabled()
public String getIdentifier()
public static KitBeacon bestMatchingKitBeacon(List kitBeacons, Region region)
NullPointerException
- When either kitBeacons
or region
are null
.public static KitBeacon bestMatchingKitBeacon(List kitBeacons, Beacon beacon)
NullPointerException
- When either kitBeacons
or beacon
are null
.@Deprecated public Region to_region()