onServerParamsSetResult method
@detail callback
@author hanchenchen.c
@brief Set the return result of the application server parameter
@param error
- 200, set successfully
- != 200: Failure. Refer to UserMessageSendResult{@link #UserMessageSendResult} for details.
@note Receive this callback after calling setServerParams{@link #RTCEngine#setServerParams}.
Implementation
FutureOr<void> onServerParamsSetResult(dynamic error) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onServerParamsSetResult
?.call(int.tryParse(error.toString()) ?? 0);
}