public class BeaconGlobalSettings
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BeaconGlobalSettings> |
CREATOR |
Constructor and Description |
---|
BeaconGlobalSettings() |
Modifier and Type | Method and Description |
---|---|
static BeaconGlobalSettings |
defaultGlobalSettings()
Initalizes a
BeaconGlobalSettings with default values. |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
double |
getAdvertisementInterval() |
double |
getDisconnectAdvertisementInterval()
The beacon's advertisement interval in seconds when in disconnect mode.
|
double |
getDisconnectAdvertisementIntervalTimeout()
The time in seconds that the beacon will stay in disconnect mode after it has been disconnected.
|
int |
getEnergySavingTimeout()
The time in seconds that the beacon needs to stay inactive before it switches to energy saving mode.
|
int |
hashCode() |
void |
setAdvertisementInterval(double advertisementInterval) |
void |
setDisconnectAdvertisementInterval(double disconnectAdvertisementInterval)
Sets the disconnectAdvertisementInterval see
getDisconnectAdvertisementInterval()
description for more information. |
void |
setDisconnectAdvertisementIntervalTimeout(double disconnectAdvertisementIntervalTimeout)
Sets the disconnectAdvertisementIntervalTimeout see
getDisconnectAdvertisementIntervalTimeout()
description for more information. |
void |
setEnergySavingTimeout(int energySavingTimeout)
Sets the energySavingTimetout in seconds see
getEnergySavingTimeout() description for
more information. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<BeaconGlobalSettings> CREATOR
public static BeaconGlobalSettings defaultGlobalSettings()
BeaconGlobalSettings
with default values.
The default settings are set to an energySavingTimeout of 1 hour, disconnectAdvertisementInterval
of 0.2, and a disconnectAdvertisementIntervalTimeout of 10 seconds.public int getEnergySavingTimeout()
public void setEnergySavingTimeout(int energySavingTimeout)
getEnergySavingTimeout()
description for
more information.energySavingTimeout
- The timeout in secondspublic double getDisconnectAdvertisementInterval()
public void setDisconnectAdvertisementInterval(double disconnectAdvertisementInterval)
getDisconnectAdvertisementInterval()
description for more information.disconnectAdvertisementInterval
- The disconect advertisement intervalpublic double getDisconnectAdvertisementIntervalTimeout()
public void setDisconnectAdvertisementIntervalTimeout(double disconnectAdvertisementIntervalTimeout)
getDisconnectAdvertisementIntervalTimeout()
description for more information.disconnectAdvertisementIntervalTimeout
- The disconnectAdvertisementIntervalTimeout in seconds.public double getAdvertisementInterval()
public void setAdvertisementInterval(double advertisementInterval)
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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object