onStop

open override fun onStop(owner: LifecycleOwner)

Called when the LifecycleOwner is stopped.

This automatically disconnects from the BLE device to conserve resources while the app is in the background. The underlying BluetoothGatt resources are retained, allowing for reconnection when the lifecycle resumes.

Parameters

owner

The LifecycleOwner whose state changed.