Class DittoBluetoothLeConfig

java.lang.Object
com.ditto.java.transports.DittoBluetoothLeConfig

public final class DittoBluetoothLeConfig extends Object
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.
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether Bluetooth LE transport is enabled.
      Returns:
      true if Bluetooth LE is enabled, false otherwise.
    • getAdvertisementPower

      public @Nullable DittoAdvertisementPower getAdvertisementPower()
      Returns the Bluetooth LE advertisement power setting.
      Returns:
      the DittoAdvertisementPower for BLE advertisements.
    • getAdvertisementInterval

      public @Nullable DittoAdvertisementFrequency getAdvertisementInterval()
      Returns the Bluetooth LE advertisement interval/frequency setting.
      Returns:
      the DittoAdvertisementFrequency for BLE advertisements.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object