Direct
Connection options for direct connection.
Direct connection has a maximum timeout which depends on the device manufacturer and is usually 30 seconds or less. It may be shortened using the timeout parameter.
Constructors
Properties
If true, the manager will automatically request the highest MTU supported by the remote device immediately after establishing the connection.
Opportunistic connection is available from Android 17 onwards. An opportunistic GATT client does not hold a GATT connection. It automatically disconnects when no other GATT connections are active for the remote device.
The delay between connection retries, defaults to 300 ms.
The connection timeout, defaults to 10 seconds. If set to a longer time than the system timeout (around 30 seconds) the connection will still timeout after the default timer. Use AutoConnect instead.