getNetworkTimeInfo method

FutureOr<NetworkTimeInfo> getNetworkTimeInfo()

@detail api @author songxiaomeng.19 @brief Obtain the synchronization network time information. @return See NetworkTimeInfo{@link #NetworkTimeInfo}. @note - When you call this API for the first time, you starts synchornizing the network time information and receive the return value 0. After the synchonization finishes, you will receive onNetworkTimeSynchronized{@link #IRTCEngineEventHandler#onNetworkTimeSynchronized}. After that, calling this API will get you the correct network time. - Under chorus scenario, participants shall start audio mixing at the same network time.

Implementation

FutureOr<NetworkTimeInfo> getNetworkTimeInfo() async {
  final result = await nativeCall('getNetworkTimeInfo', []);
  return packObject(result,
      () => NetworkTimeInfo(const NativeClassOptions([], disableInit: true)));
}