error property

ErrorCallback? error
getter/setter pair

Reports an error during SDK runtime. This callback indicates that an error (concerning network or media) occurs during SDK runtime. In most cases, the SDK cannot fix the issue and resume running. The SDK requires the application to take action or informs the user about the issue. For example, the SDK reports an ERR_START_CALL error when failing to initialize a call. The app informs the user that the call initialization failed and calls leaveChannel to leave the channel.

Param err The error code.

Implementation

ErrorCallback? error;