onStateChanged

Invoked when the SDK's connection state changes.

Parameters

newState

The new state of the SDK's connection represented by ConnectionState.