getCallId method

Future<String?> getCallId()

@detail api @valid since 3.60. @author xuyiling @brief 获取通话 ID。
该方法需要在加入 RTC 房间后调用。当创建一个房间开启音视频通话后,系统会为该房间生成一个对应的通话 ID,标识此房间的通话。 @return 通话 ID。

Implementation

Future<String?> getCallId() async {
  $a() => ($instance as $p_a.RTCRoom).getCallId();
  $i() => ($instance as $p_i.ByteRTCRoom).getCallId();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}