public class Preset
extends java.lang.Object
implements android.os.Parcelable
Device
can be configured with.
Contrary to Config
, presets are not removed once the device will be updated with parameters
applied from them. They should be interpreted as states in which devices are working.
For example, you could define "Long interval profile" where device interval period accepts the
the longest interval.Modifier and Type | Class and Description |
---|---|
static class |
Preset.Builder
Builder class that is used to build
Preset instances from values configured by the setters. |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Preset> |
CREATOR
Parcelable CREATOR constant.
|
static int |
INTERVAL_MAX_VALUE
A constant holding the maximum value an interval property can have.
|
static int |
INTERVAL_MIN_VALUE
A constant holding the minimum value an interval property can have.
|
static int |
TX_POWER_MAX_VALUE
A constant holding the maximum value a txPower property can have.
|
static int |
TX_POWER_MIN_VALUE
A constant holding the minimum value a txPower property can have.
|
Modifier and Type | Method and Description |
---|---|
static Preset.Builder |
builder() |
int |
describeContents() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription() |
int |
getInterval() |
java.lang.String |
getName() |
java.util.UUID |
getProximity() |
int |
getTxPower() |
int |
hashCode() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Preset> CREATOR
public static final int INTERVAL_MIN_VALUE
public static final int INTERVAL_MAX_VALUE
public static final int TX_POWER_MIN_VALUE
public static final int TX_POWER_MAX_VALUE
public static Preset.Builder builder()
public boolean equals(java.lang.Object obj)
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.util.UUID getProximity()
public int getInterval()
public int getTxPower()
public java.lang.String getName()
public java.lang.String getDescription()