getCallId method Null safety

Future<String?> getCallId()

Gets the current call ID.

When a user joins a channel on a client, a call ID is generated to identify the call from the client. Feedback methods, such as the RtcEngine.rate and RtcEngine.complain method, must be called after the call ends to submit feedback to the SDK.

The rate and complain methods require the callId parameter retrieved from the RtcEngine.getCallId method during a call. callId is passed as an argument into the rate and complain methods after the call ends.


  • The current call ID, if the method call succeeds.
  • The empty string "", if the method call fails.


Future<String?> getCallId() {
  return _invokeMethod('getCallId');