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

AdvertisingOptions

public final class AdvertisingOptions extends Object
implements Parcelable

Nested Class Summary

class AdvertisingOptions.Builder Builder class for AdvertisingOptions. 

Inherited Constant Summary

Field Summary

public static final Creator<AdvertisingOptions> CREATOR

Public Constructor Summary

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

Public Method Summary

boolean
equals(Object other)
boolean
getDisruptiveUpgrade()
Gets the disruptive upgrade flag.
boolean
getLowPower()
Gets whether low power should be used, if true only low power mediums (like BLE) will be used for advertising.
Strategy
getStrategy()
Get the advertising strategy, the strategy used for advertising.
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<AdvertisingOptions> CREATOR

Public Constructors

public AdvertisingOptions (Strategy strategy)

This constructor is deprecated.
Use AdvertisingOptions.Builder instead.

Public Methods

public boolean equals (Object other)

public boolean getDisruptiveUpgrade ()

Gets the disruptive upgrade flag. A disruptive upgrade may disconnect the device from its primary Wi-Fi network, or otherwise modify Wi-Fi and/or BT state to optimize for faster throughput. By default, this option is true.

public boolean getLowPower ()

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

public Strategy getStrategy ()

Get the advertising strategy, the strategy used for advertising. Must match the strategy used in DiscoveryOptions.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)