ConnectionOptions

public final classConnectionOptionsextendsObject
implementsParcelable

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 ConnectionTypeto a string.
boolean
int
getConnectionType()
Returns the ConnectionTypewhich 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
String
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.

public inthashCode()

publicStringtoString()

public voidwriteToParcel(Parceldest, int flags)