onConnectionStateChanged property

(void Function(int? state, int? reason)?) onConnectionStateChanged
getter/setter pair

Occurs when the connection state between the SDK and the Agora RTM system changes.

Implementation

void Function(int? state, int? reason)? onConnectionStateChanged;