rate abstract method

Future<void> rate({
  1. required String callId,
  2. required int rating,
  3. required String description,
})

Rates a call.

This method must be called after the user leaves the channel.

  • callId The call ID. You can obtain this parameter by calling getCallId.
  • rating The rating for the call, from 1 (lowest) to 5 (highest).
  • description A description of the call. The length must be less than 800 bytes.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> rate(
    {required String callId,
    required int rating,
    required String description});