Google is committed to advancing racial equity for Black communities. See how.

DiscoveryOptions

public final class DiscoveryOptions extends Object
implements Parcelable

Nested Class Summary

class DiscoveryOptions.Builder Builder class for DiscoveryOptions. 

Inherited Constant Summary

Field Summary

public static final Creator<DiscoveryOptions> CREATOR

Public Constructor Summary

DiscoveryOptions(Strategy strategy)
This constructor is deprecated. Use DiscoveryOptions.Builder instead.

Public Method Summary

boolean
equals(Object other)
boolean
getLowPower()
Gets whether low power should be used, if true, only low power mediums (like BLE) will be used for discovery.
Strategy
getStrategy()
Gets the discovery strategy, the strategy to use for discovering, must match the strategy used in AdvertisingOptions.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<DiscoveryOptions> CREATOR

Public Constructors

public DiscoveryOptions (Strategy strategy)

This constructor is deprecated.
Use DiscoveryOptions.Builder instead.

Public Methods

public boolean equals (Object other)

public boolean getLowPower ()

Gets whether low power should be used, if true, only low power mediums (like BLE) will be used for discovery. By default, this option is false.

public Strategy getStrategy ()

Gets the discovery strategy, the strategy to use for discovering, must match the strategy used in AdvertisingOptions.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)