Class DittoBluetoothLeConfig
java.lang.Object
com.ditto.java.transports.DittoBluetoothLeConfig
Configuration for Bluetooth Low Energy peer-to-peer transport.
Bluetooth LE allows nearby devices to discover and sync with each other without requiring
infrastructure like Wi-Fi routers or internet connectivity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for constructing aDittoBluetoothLeConfig. -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable DittoAdvertisementFrequencyReturns the Bluetooth LE advertisement interval/frequency setting.@Nullable DittoAdvertisementPowerReturns the Bluetooth LE advertisement power setting.inthashCode()booleanReturns whether Bluetooth LE transport is enabled.toString()
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether Bluetooth LE transport is enabled.- Returns:
trueif Bluetooth LE is enabled,falseotherwise.
-
getAdvertisementPower
Returns the Bluetooth LE advertisement power setting.- Returns:
- the
DittoAdvertisementPowerfor BLE advertisements.
-
getAdvertisementInterval
Returns the Bluetooth LE advertisement interval/frequency setting.- Returns:
- the
DittoAdvertisementFrequencyfor BLE advertisements.
-
hashCode
-
equals
-
toString
-