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 final Creator<ConnectionOptions> | CREATOR |
Public Method Summary
static String |
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(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<ConnectionOptions> CREATOR
Public Methods
public static String convertConnectionTypeToString (int connectionType)
Converts the ConnectionType
to a string.
public boolean equals (Object other)
public int getConnectionType ()
Returns the ConnectionType
which indicate the client prefer or not prefer to disrupt the current Wi-Fi or
Bluetooth connections. The default is
ConnectionType.BALANCED
.
public boolean getDisruptiveUpgrade ()
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 boolean getLowPower ()
Gets whether to attempt to connect with the lowest possible power (like BLE) if true. By default, this option is false.