ConnectionOptions

sealed class ConnectionOptions

Android-specific connection options.

Inheritors

Types

Link copied to clipboard
data class AutoConnect(val automaticallyRequestHighestValueLength: Boolean = true, val opportunistic: Boolean = false) : CentralManager.ConnectionOptions

Connection using Auto Connect feature.

Link copied to clipboard
object Companion
Link copied to clipboard
data class Direct(val timeout: Duration = 10.seconds, val retry: Int = 2, val retryDelay: Duration = 300.milliseconds, val automaticallyRequestHighestValueLength: Boolean = true, val opportunistic: Boolean = false) : CentralManager.ConnectionOptions

Connection options for direct connection.

Properties

Link copied to clipboard

If true, the manager will automatically request the highest MTU supported by the remote device immediately after establishing the connection.

Link copied to clipboard

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.