public class Beacon extends Device implements IBeacon
Manager
).
It acts also as a container for Actions and may be assigned to certain
Venue (Venue
).
Beacon is obtainable via REST Client.
Please, note that there is also Beacon class representing real Beacon device that
appears immediately once it is detected by Android Device' BluetoothAdapter
(android.bluetooth.BluetoothAdapter
).
By convention this model is fully immutable.
To create new instance of the model, please use the Beacon.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
Beacon.Builder
The type Builder.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR
Parcelable CREATOR constant.
|
protected int |
databaseId
The Database id.
|
Constructor and Description |
---|
Beacon(Beacon.Builder builder)
Instantiates a new Beacon model.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static Beacon |
from(JSONObject jsonObject)
Creates new instance of Beacon from JSON content.
|
int |
getDatabaseId()
Gets database id.
|
java.lang.String |
getSecureNamespace()
Gets secure namespace
|
java.util.UUID |
getSecureProximityUUID()
Gets secure proximity uuid
|
boolean |
isShuffled()
Checks if device is shuffled
|
protected void |
parcelProperties(Bundle bundle) |
calculateHashCode, equals, fromList, getAccess, getActionsCount, getAlias, getDeviceProfiles, getDeviceType, getFirmwareVersion, getId, getInstanceId, getInterval, getLatitude, getLongitude, getMacAddress, getMajor, getManagerId, getMinor, getModel, getName, getNamespace, getProximityUUID, getSpecification, getTxPower, getUniqueId, getUrl, getVenue, hashCode, writeToParcel
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getActionsCount, getAlias, getId, getInterval, getManagerId, getName, getTxPower, getUniqueId, getVenue
public static final <any> CREATOR
StackOverflowError
FileData
as its member will be recreated
with this member set to null. Please organise the access to the data in different way.
protected final int databaseId
android.database.sqlite.SQLiteDatabase
). If you
do not need to use it, ignore it during model building.public Beacon(Beacon.Builder builder)
builder
- Beacon builderpublic boolean isShuffled()
IDevice
isShuffled
in interface IDevice
public java.util.UUID getSecureProximityUUID()
IDevice
getSecureProximityUUID
in interface IDevice
public java.lang.String getSecureNamespace()
IDevice
getSecureNamespace
in interface IDevice
protected void parcelProperties(Bundle bundle)
parcelProperties
in class Device
public static Beacon from(JSONObject jsonObject)
jsonObject
- the json object with contentpublic int getDatabaseId()
public int describeContents()