addConnectStateCallback

fun addConnectStateCallback(lifecycleOwner: LifecycleOwner, connectCallback: ConnectStateCallback)

Adds a connection state callback

Parameters

lifecycleOwner

The LifecycleOwner used to manage the callback lifecycle

connectCallback

The callback for handling connection state changes