onConnectionStateChanged abstract method
Called when a device's connection state changes
uuid - Unique identifier of the device
state - New connection state
This is called for both successful and failed connection attempts, as well as unexpected disconnections.
Implementation
void onConnectionStateChanged(String uuid, ConnectionState state);