setKeyMetricsStats function

void setKeyMetricsStats(
  1. int key
)

Implementation

void setKeyMetricsStats(int key) async {

  TRTCCloud trtcCloud = (await TRTCCloud.sharedInstance())!;

  trtcCloud.callExperimentalAPI(jsonEncode({"api": "KeyMetricsStats",
                              "params": { "opt": "count",
                                          "key": key}}));
}