Skip to main content

Listen to Connection Status

Set Status Listener

When the connection status between the SDK and RC servers changes, developers can handle it using the following method.

Method

Function(RCIMIWConnectionStatus? status)? onConnectionStatusChanged;

Parameter Description

Parameter NameParameter TypeDescription
statusRCIMIWConnectionStatusThe connection status between the SDK and RC servers

Code Example

engine?.onConnectionStatusChanged = (RCIMIWConnectionStatus? status) {
//...
};