public class SBeacon extends ConfigurableBeacon
ConfigurableBeacon.ConfigurableBeaconListener
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<SBeacon> |
CREATOR |
STATE_AUTHENTICATING, STATE_CONNECTED, STATE_CONNECTING, STATE_DISCONNECTED, STATE_DISCOVERING, STATE_FIRMWARE_UPDATE, STATE_READING, STATE_WRITING
Constructor and Description |
---|
SBeacon() |
SBeacon(byte[] data,
android.bluetooth.BluetoothDevice device) |
SBeacon(android.os.Parcel parcel) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
Battery |
getBattery() |
int |
getBeaconTime()
The beacon time of this connected beacon.
|
Device |
getDevice() |
java.math.BigInteger |
getIdentifier() |
java.lang.String |
getName() |
Temperature |
getTemperature() |
java.lang.String |
getTypeString()
Gets the type of this beacon as a string
|
int |
hashCode() |
void |
readDataLog(boolean autoClear,
ProgressListener progressListener,
CommandCompletion completion)
Reads the Data Log of a connected beacon, requires specific hardware and firmware.
|
void |
readDataLog(ProgressListener progressListener,
CommandCompletion completion)
Reads the Data Log of a connected beacon, requires specific hardware and firmware.
|
void |
setDeviceTime(int timeInSeconds,
CommandCompletion completion)
Sets the Device Time for a connected beacon.
|
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
void |
updateProperties(byte[] data) |
void |
writeToParcel(android.os.Parcel parcel,
int i) |
connect, disconnect, enableBeaconSpeakerAndLed, getBeaconConfiguration, getConnectionState, setConfiguration, setNewBeaconPassword
getBluetoothDevice, getDistance, getLastSeen, getRSSI, getTransmissionPower, getVisibilityTimeoutInterval, isVisible, setLastSeen, setRSSI, setVisibilityTimeoutInterval
public static final android.os.Parcelable.Creator<SBeacon> CREATOR
public SBeacon(android.os.Parcel parcel)
public SBeacon()
public SBeacon(byte[] data, android.bluetooth.BluetoothDevice device)
public java.lang.String getTypeString()
Beacon
getTypeString
in class ConfigurableBeacon
public void setName(java.lang.String name)
public java.lang.String getName()
@Nullable public Device getDevice()
Device
that is broadcasting the advertisements associated with this beaconpublic void setDeviceTime(int timeInSeconds, @Nullable CommandCompletion completion)
timeInSeconds
- completion
- public void readDataLog(boolean autoClear, @Nullable ProgressListener progressListener, @Nullable CommandCompletion completion)
autoClear
- When set to true clears all data off the beacon after successfully read.progressListener
- completion
- public void readDataLog(@Nullable ProgressListener progressListener, @Nullable CommandCompletion completion)
progressListener
- completion
- public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class ConfigurableBeacon
public void writeToParcel(android.os.Parcel parcel, int i)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class ConfigurableBeacon
public void updateProperties(byte[] data)
updateProperties
in class Beacon
public java.math.BigInteger getIdentifier()
public int getBeaconTime()
public Battery getBattery()
public Temperature getTemperature()
public java.lang.String toString()
toString
in class java.lang.Object