onConnectionStateChanged abstract method

void onConnectionStateChanged(
  1. String uuid,
  2. ConnectionState state
)

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);