Sequenceablepublic final class BleAdvertiseSettings extends Object implements Sequenceable
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
BleAdvertiseSettings.Builder |
BleAdvertiseSettings builder. |
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
INTERVAL_SLOT_DEFAULT |
Default slot value for the advertising interval, which is
1600 (1s). |
static int |
INTERVAL_SLOT_MAX |
Maximum slot value for the advertising interval, which is
16777215 (10485.759375s). |
static int |
INTERVAL_SLOT_MIN |
Minimum slot value for the advertising interval, which is
32 (20 ms). |
static int |
TX_POWER_DEFAULT |
Default transmission power level for advertising, which is
-7. |
static int |
TX_POWER_MAX |
Maximum transmission power level for advertising, which is
1. |
static int |
TX_POWER_MIN |
Minimum transmission power level for advertising, which is
-127. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
isConnectable() |
Checks whether the BLE is connectable.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final int INTERVAL_SLOT_DEFAULT
1600 (1s).public static final int INTERVAL_SLOT_MAX
16777215 (10485.759375s).public static final int INTERVAL_SLOT_MIN
32 (20 ms).public static final int TX_POWER_DEFAULT
-7.public static final int TX_POWER_MAX
1.public static final int TX_POWER_MIN
-127.public boolean isConnectable()
true if connectable, false otherwise.public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.