LifecycleAwareBleConnection

constructor(connection: BleConnection, lifecycleOwner: LifecycleOwner)

Parameters

connection

The underlying BleConnection instance to wrap.

lifecycleOwner

The LifecycleOwner whose lifecycle will control this connection. Typically an Activity, Fragment, or other lifecycle-aware component.