Monitor Connection Status
Set Status Listener
When the connection status between the SDK and RC server changes, developers can handle it using the following method.
Method
setOnConnectionStatusChangedListener(listener?: (status: RCIMIWConnectionStatus) => void): void;
Parameter Description
Parameter Name | Parameter Type | Description |
---|---|---|
status | RCIMIWConnectionStatus | The connection status between the SDK and RC server |
Code Example
engine?.setOnConnectionStatusChangedListener((status: RCIMIWConnectionStatus) => {
//...
});