ConnectionObserver

Receives connection state changes independent of explicit calls to connect or release.

To add or remove an observer, use addObserver and removeObserver respectively.

Functions

Link copied to clipboard
abstract fun onConnected()
Called when the connection to the device has been established.
Link copied to clipboard
abstract fun onDisconnected()
Called when the connection to the device has been lost.