error property

ErrorCallback? error
getter/setter pair

Reports an error during SDK runtime.

In most cases, the SDK cannot fix the issue and resume running. The SDK requires the app to take action or informs the user about the issue.

For example, the SDK reports an ErrorCode.StartCall error when failing to initialize a call. The app informs the user that the call initialization failed and invokes the RtcEngine.leaveChannel method to leave the channel. For detailed error codes, see ErrorCode.

The ErrorCallback typedef includes the following parameter:

Implementation

ErrorCallback? error;