Fields Summary |
---|
public static final int | ADVERTISE_MODE_LOW_POWERPerform Bluetooth LE advertising in low power mode. This is the default and preferred
advertising mode as it consumes the least power. |
public static final int | ADVERTISE_MODE_BALANCEDPerform Bluetooth LE advertising in balanced power mode. This is balanced between advertising
frequency and power consumption. |
public static final int | ADVERTISE_MODE_LOW_LATENCYPerform Bluetooth LE advertising in low latency, high power mode. This has the highest power
consumption and should not be used for continuous background advertising. |
public static final int | ADVERTISE_TX_POWER_ULTRA_LOWAdvertise using the lowest transmission (TX) power level. Low transmission power can be used
to restrict the visibility range of advertising packets. |
public static final int | ADVERTISE_TX_POWER_LOWAdvertise using low TX power level. |
public static final int | ADVERTISE_TX_POWER_MEDIUMAdvertise using medium TX power level. |
public static final int | ADVERTISE_TX_POWER_HIGHAdvertise using high TX power level. This corresponds to largest visibility range of the
advertising packet. |
private static final int | LIMITED_ADVERTISING_MAX_MILLISThe maximum limited advertisement duration as specified by the Bluetooth SIG |
private final int | mAdvertiseMode |
private final int | mAdvertiseTxPowerLevel |
private final int | mAdvertiseTimeoutMillis |
private final boolean | mAdvertiseConnectable |
public static final Parcelable.Creator | CREATOR |
Methods Summary |
---|
public int | describeContents()
return 0;
|
public int | getMode()Returns the advertise mode.
return mAdvertiseMode;
|
public int | getTimeout()Returns the advertising time limit in milliseconds.
return mAdvertiseTimeoutMillis;
|
public int | getTxPowerLevel()Returns the TX power level for advertising.
return mAdvertiseTxPowerLevel;
|
public boolean | isConnectable()Returns whether the advertisement will indicate connectable.
return mAdvertiseConnectable;
|
public java.lang.String | toString()
return "Settings [mAdvertiseMode=" + mAdvertiseMode
+ ", mAdvertiseTxPowerLevel=" + mAdvertiseTxPowerLevel
+ ", mAdvertiseConnectable=" + mAdvertiseConnectable
+ ", mAdvertiseTimeoutMillis=" + mAdvertiseTimeoutMillis + "]";
|
public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeInt(mAdvertiseMode);
dest.writeInt(mAdvertiseTxPowerLevel);
dest.writeInt(mAdvertiseConnectable ? 1 : 0);
dest.writeInt(mAdvertiseTimeoutMillis);
|