ENTERED_RSSI, INVALID_RANGE, INVALID_RSSI, STATE_INSIDE, STATE_OUTSIDE, STATE_UNKNOWNTYPE_BEACON, TYPE_GEOFENCE, TYPE_WIFIproperties| Constructor and Description |
|---|
Beacon(Config.Location location,
org.json.JSONObject properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortConfiguration()
Discards any pending changes and resets the beacon to current settings.
|
void |
beginConfiguration()
Begin a set of beacon configuration operations.
|
void |
commitConfiguration(boolean force,
Completion completion)
Flushes pending configuration changes to the server and calls the completion
when all changes have been completed or an error occurs.
|
double |
getBattery() |
org.json.JSONObject |
getDeviceConfigurationState() |
android.graphics.Bitmap |
getFarImage()
Gets far image
|
void |
getFarImage(Completion completion)
Return the locally configured pending far image or fetch the previously
configured image.
|
Config.ImageMarker |
getFarImageMarker()
Get the image marker associated with the far image
|
Config.Firmware |
getFirmware() |
Config.Floorplan |
getFloorplan()
Gets Floorplan
|
Config.ImageMarker |
getFloorplanMarker()
Get the pin location marker
|
Config.Location |
getLocation()
Return the current (possibly uncommitted) location for the beacon
|
java.lang.String |
getMacAddress() |
android.graphics.Bitmap |
getNearImage()
Gets near image
|
void |
getNearImage(Completion completion)
Return the locally configured pending near image or fetch the previously
configured image.
|
Config.ImageMarker |
getNearImageMarker()
Get the image marker associated with the near image
|
static void |
getPeripheralBeacon(Beacon beacon,
java.lang.String urn,
Completion completion) |
static void |
getPeripheralBeacon(Beacon beacon,
java.lang.String urn,
long timeout,
Completion completion) |
Placement |
getPlacement()
Returns the current (possibly uncommitted) placement for the beacon
|
org.json.JSONObject |
getServerConfigurationState() |
void |
load(Completion completion) |
boolean |
needsUpdate() |
void |
setFarImage(android.graphics.Bitmap image)
Associates a far image with a beacon and optional marker
|
void |
setFarImageMarker(Config.ImageMarker marker)
Set an image marker for the far image
|
void |
setFirmware(Config.Firmware firmware)
Set the firmware for this beacon.
|
void |
setFloorplanLocation(Config.Floorplan floorplan,
Config.ImageMarker marker)
Sets the floorplan location (pin) for the beacon
|
void |
setLocation(Config.Location location)
Sets the new location for the beacon.
|
void |
setNearImage(android.graphics.Bitmap image)
Associates a near image with a beacon and optional marker
|
void |
setNearImageMarker(Config.ImageMarker marker)
Set an image marker for the near image
|
void |
setPlacement(Placement placement)
Set the current placement for the beacon
|
void |
setServerConfigurationState(org.json.JSONObject serverState) |
java.lang.String |
toString() |
getAddress, getAdvertisements, getdBm1, getExtra, getLast, getLastDetected, getManufacturer, getModel, getName, getPartner, getPeripheral, getPower, getProtocol, getProtocolString, getRange, getRssi, getSerial, getState, getThreshold, getType, isConnectable, isOverlapping, setRssiParamsgetAttachments, getAttributes, getError, getLabels, getURN, setErrorpublic Beacon(Config.Location location, org.json.JSONObject properties)
public java.lang.String getMacAddress()
public double getBattery()
public boolean needsUpdate()
public void load(Completion completion)
public void beginConfiguration()
public void setLocation(Config.Location location)
location - the location to change the beacon placement forpublic Config.Location getLocation()
getLocation in class SignalLocationpublic void setPlacement(Placement placement)
placement - public Placement getPlacement()
public void setFloorplanLocation(Config.Floorplan floorplan, Config.ImageMarker marker)
floorplan - public Config.Floorplan getFloorplan()
public Config.ImageMarker getFloorplanMarker()
public void setFarImage(android.graphics.Bitmap image)
image - public void setNearImage(android.graphics.Bitmap image)
image - public android.graphics.Bitmap getFarImage()
public android.graphics.Bitmap getNearImage()
public void getFarImage(Completion completion)
completion - returns the Bitmap in the data portionpublic void getNearImage(Completion completion)
completion - returns the Bitmap in the data portionpublic void setFarImageMarker(Config.ImageMarker marker)
marker - (x, y, radius) of image markerpublic void setNearImageMarker(Config.ImageMarker marker)
marker - (x, y, radius) of image markerpublic Config.ImageMarker getFarImageMarker()
public Config.ImageMarker getNearImageMarker()
public void setFirmware(Config.Firmware firmware)
firmware - A firmware object valid for this beaconpublic Config.Firmware getFirmware()
public org.json.JSONObject getDeviceConfigurationState()
public org.json.JSONObject getServerConfigurationState()
public void setServerConfigurationState(org.json.JSONObject serverState)
public void abortConfiguration()
public void commitConfiguration(boolean force,
Completion completion)
force - completion - public static void getPeripheralBeacon(Beacon beacon, java.lang.String urn, Completion completion)
public static void getPeripheralBeacon(Beacon beacon, java.lang.String urn, long timeout, Completion completion)