AI-generated Key Takeaways
-
ConnectionType is an annotation used by Nearby Connection to establish a connection.
-
There are three connection types: BALANCED, DISRUPTIVE, and NON_DISRUPTIVE.
-
BALANCED changes Wi-Fi or Bluetooth status only if necessary.
-
DISRUPTIVE changes Wi-Fi or Bluetooth status to enhance throughput, potentially losing internet connection.
-
NON_DISRUPTIVE does not change Wi-Fi or Bluetooth status.
The connection type which Nearby Connection used to establish a connection.
Constant Summary
| int | BALANCED | Nearby Connections will change the device's Wi-Fi or Bluetooth status only if necessary. |
| int | DISRUPTIVE | Nearby Connections will change the device's Wi-Fi or Bluetooth status to enhance throughput. |
| int | NON_DISRUPTIVE | Nearby Connections should not change the device's Wi-Fi or Bluetooth status. |
Inherited Method Summary
Constants
public static final int BALANCED
Nearby Connections will change the device's Wi-Fi or Bluetooth status only if necessary.
public static final int DISRUPTIVE
Nearby Connections will change the device's Wi-Fi or Bluetooth status to enhance throughput. This may cause the device to lose its internet connection.
public static final int NON_DISRUPTIVE
Nearby Connections should not change the device's Wi-Fi or Bluetooth status.