Class DittoPeerToPeer.Builder
java.lang.Object
com.ditto.java.transports.DittoPeerToPeer.Builder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface for configuring Bluetooth LE transport.static interfaceFunctional interface for configuring LAN transport.static interfaceFunctional interface for configuring Wi-Fi Aware transport. -
Method Summary
Modifier and TypeMethodDescription@NonNull DittoBluetoothLeConfig.BuilderReturns the Bluetooth Low Energy configuration builder.@NonNull DittoPeerToPeer.BuilderbluetoothLe(@NonNull DittoPeerToPeer.Builder.UpdateBluetoothLeConfig update) Configures Bluetooth Low Energy transport using a lambda.@NonNull DittoLanConfig.Builderlan()Returns the LAN configuration builder.@NonNull DittoPeerToPeer.Builderlan(@NonNull DittoPeerToPeer.Builder.UpdateLanConfig update) Configures LAN transport using a lambda.@NonNull DittoWifiAwareConfig.BuilderReturns the Wi-Fi Aware configuration builder.@NonNull DittoPeerToPeer.BuilderwifiAware(@NonNull DittoPeerToPeer.Builder.UpdateWifiAwareConfig update) Configures Wi-Fi Aware transport using a lambda.
-
Method Details
-
bluetoothLe
Returns the Bluetooth Low Energy configuration builder.- Returns:
- the
DittoBluetoothLeConfig.Builderfor configuring Bluetooth LE transport.
-
bluetoothLe
public @NonNull DittoPeerToPeer.Builder bluetoothLe(@NonNull DittoPeerToPeer.Builder.UpdateBluetoothLeConfig update) Configures Bluetooth Low Energy transport using a lambda.- Parameters:
update- a lambda that receives theDittoBluetoothLeConfig.Builderto configure.- Returns:
- this Builder for method chaining.
-
lan
Returns the LAN configuration builder.- Returns:
- the
DittoLanConfig.Builderfor configuring LAN transport.
-
lan
public @NonNull DittoPeerToPeer.Builder lan(@NonNull DittoPeerToPeer.Builder.UpdateLanConfig update) Configures LAN transport using a lambda.- Parameters:
update- a lambda that receives theDittoLanConfig.Builderto configure.- Returns:
- this Builder for method chaining.
-
wifiAware
Returns the Wi-Fi Aware configuration builder.- Returns:
- the
DittoWifiAwareConfig.Builderfor configuring Wi-Fi Aware transport.
-
wifiAware
public @NonNull DittoPeerToPeer.Builder wifiAware(@NonNull DittoPeerToPeer.Builder.UpdateWifiAwareConfig update) Configures Wi-Fi Aware transport using a lambda.- Parameters:
update- a lambda that receives theDittoWifiAwareConfig.Builderto configure.- Returns:
- this Builder for method chaining.
-