Options for a call to
ConnectionsClient.requestConnection(byte[], String,
ConnectionLifecycleCallback)
.
Nested Class Summary
class | ConnectionOptions.Builder | Builder class for ConnectionOptions. |
Inherited Constant Summary
Field Summary
public static finalCreator<ConnectionOptions> | CREATOR |
Public Method Summary
staticString |
convertConnectionTypeToString(int connectionType)
Converts the
ConnectionType to a string.
|
boolean | |
int |
getConnectionType()
Returns the
ConnectionType which indicate the client prefer or not prefer to
disrupt the current Wi-Fi or Bluetooth connections.
|
boolean |
getDisruptiveUpgrade()
This method is deprecated. Use
getConnectionType() instead.
|
boolean |
getLowPower()
Gets whether to attempt to connect with the lowest possible power (like BLE) if
true.
|
int |
hashCode()
|
String |
toString()
|
void |
writeToParcel(Parceldest, int
flags)
|
Inherited Method Summary
Fields
public static finalCreator<ConnectionOptions> CREATOR
Public Methods
public staticStringconvertConnectionTypeToString(int connectionType)
Converts theConnectionType
to a string.
public booleanequals(Objectother)
public intgetConnectionType()
Returns theConnectionType
which indicate the client prefer or not prefer to disrupt the current Wi-Fi or
Bluetooth connections. The default is
ConnectionType.BALANCED
.
public booleangetDisruptiveUpgrade()
This method is deprecated.
Use
getConnectionType()
instead.
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 booleangetLowPower()
Gets whether to attempt to connect with the lowest possible power (like BLE) if true. By default, this option is false.