DiscoveryOptions.Builder

public static final class DiscoveryOptions.Builder extends Object

Builder class for DiscoveryOptions.

Public Constructor Summary

Builder()
Creates a builder using the default discovery options.
Builder(DiscoveryOptions origin)
Creates a builder, copying the provided discovery options.

Public Method Summary

DiscoveryOptions
build()
Builds an instance of DiscoveryOptions.
DiscoveryOptions.Builder
setLowPower(boolean lowPower)
Sets whether to use low power.
DiscoveryOptions.Builder
setStrategy(Strategy strategy)
Sets the discovery strategy.

Inherited Method Summary

Public Constructors

public Builder ()

Creates a builder using the default discovery options.

public Builder (DiscoveryOptions origin)

Creates a builder, copying the provided discovery options.

Public Methods

public DiscoveryOptions build ()

Builds an instance of DiscoveryOptions.

public DiscoveryOptions.Builder setLowPower (boolean lowPower)

Sets whether to use low power. If true, only low power mediums (like BLE) will be used for discovery. By default, this option is false.

public DiscoveryOptions.Builder setStrategy (Strategy strategy)

Sets the discovery strategy. Must match the strategy used in AdvertisingOptions.