public class BeaconConfiguration
extends java.lang.Object
implements android.os.Parcelable
ConfigurableBeacon
.
The settings included in a `BeaconConfiguration` object can represent the current settings of a configurable beacon.
A configuration object can also be used to schedule a change of settings on a configurable beacon.
Beacon configurations consist of three parts:
A beacon object for each configurable beacon type. iBeacon, EddystoneUIDBeacon, EddystoneURLBeacon and sBeacon.
An advanced settings object for each advertisement type the configurable beacon can be setup with.
A global settings object that keeps general beacon settings.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BeaconConfiguration> |
CREATOR |
Constructor and Description |
---|
BeaconConfiguration() |
public static final android.os.Parcelable.Creator<BeaconConfiguration> CREATOR
public void setIBeacon(IBeacon IBeacon)
IBeacon
- The IBeacon
settings for this configurationpublic void setSBeaconIdentifier(java.math.BigInteger SBeaconIdentifier)
public EddystoneURLBeacon getEddystoneURLBeacon()
EddystoneURLBeacon
for the configurationpublic void setEddystoneURLBeacon(EddystoneURLBeacon eddystoneURLBeacon)
eddystoneURLBeacon
- The EddystoneURLBeacon
settings for this configurationpublic EddystoneUIDBeacon getEddystoneUIDBeacon()
EddystoneUIDBeacon
for the configurationpublic void setEddystoneUIDBeacon(EddystoneUIDBeacon eddystoneUIDBeacon)
eddystoneUIDBeacon
- The EddystoneUIDBeacon
settings for this configurationpublic BeaconGlobalSettings getGlobalSettings()
BeaconGlobalSettings
for this configurationpublic void setGlobalSettings(BeaconGlobalSettings globalSettings)
globalSettings
- the BeaconGlobalSettings
for this configurationpublic int getParingRSSI()
public void setParingRSSI(int paringRSSI)
paringRSSI
- the paring rssi for this configuration (between -100 and -60)public int getSleepTimeout()
public void setSleepTimeout(int sleepTimeout)
sleepTimeout
- The sleep timeout in seconds.public BeaconAdvancedSettings getIBeaconAdvancedSettings()
BeaconAdvancedSettings
for the iBeacon of the configurationpublic void setIBeaconAdvancedSettings(BeaconAdvancedSettings IBeaconAdvancedSettings)
IBeaconAdvancedSettings
- the BeaconAdvancedSettings
for iBeacon Advertisementspublic BeaconAdvancedSettings getEddystoneUIDAdvancedSettings()
BeaconAdvancedSettings
for the EddystoneUIDBeacon of the configurationpublic void setEddystoneUIDAdvancedSettings(BeaconAdvancedSettings eddystoneUIDAdvancedSettings)
eddystoneUIDAdvancedSettings
- the BeaconAdvancedSettings
for eddystone uid Advertisementspublic BeaconAdvancedSettings getEddystoneURLAdvancedSettings()
BeaconAdvancedSettings
for the EddystoneURLBeacon of the configurationpublic void setEddystoneURLAdvancedSettings(BeaconAdvancedSettings eddystoneURLAdvancedSettings)
eddystoneURLAdvancedSettings
- the BeaconAdvancedSettings
for eddystone url Advertisementspublic BeaconAdvancedSettings getEddystoneTLMAdvancedSettings()
BeaconAdvancedSettings
for the EddystoneTLMBeacon of the configurationpublic void setEddystoneTLMAdvancedSettings(BeaconAdvancedSettings eddystoneTLMAdvancedSettings)
eddystoneTLMAdvancedSettings
- the BeaconAdvancedSettings
for eddystone tlm Advertisementspublic BeaconAdvancedSettings getSBeaconAdvancedSettings()
BeaconAdvancedSettings
for the SBeacon of the configurationpublic void setSBeaconAdvancedSettings(BeaconAdvancedSettings SBeaconAdvancedSettings)
SBeaconAdvancedSettings
- the BeaconAdvancedSettings
for sbeacon Advertisementspublic BeaconAdvancedSettings getSBeaconV1AdvancedSettings()
BeaconAdvancedSettings
for the SBeacon v1 (legacy) of the configurationpublic void setSBeaconV1AdvancedSettings(BeaconAdvancedSettings SBeaconV1AdvancedSettings)
SBeaconV1AdvancedSettings
- the BeaconAdvancedSettings
for sbeacon v1 (legacy) Advertisementspublic BeaconAdvancedSettings getMotionBeaconAdvancedSettings()
BeaconAdvancedSettings
for the Motion Beacon of the configurationpublic void setMotionBeaconAdvancedSettings(BeaconAdvancedSettings motionBeaconAdvancedSettings)
motionBeaconAdvancedSettings
- the BeaconAdvancedSettings
for motion Advertisementspublic BeaconAdvancedSettings getLightBeaconAdvancedSettings()
BeaconAdvancedSettings
for the Light Beacon of the configurationpublic void setLightBeaconAdvancedSettings(BeaconAdvancedSettings lightBeaconAdvancedSettings)
lightBeaconAdvancedSettings
- the BeaconAdvancedSettings
for light Advertisementspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object