add Connect State Callback
Adds a connection state callback
Parameters
lifecycle Owner
The LifecycleOwner used to manage the callback lifecycle
connect Callback
The callback for handling connection state changes
Adds a connection state callback
The LifecycleOwner used to manage the callback lifecycle
The callback for handling connection state changes