getNetworkTimeInfo method

Future<ZegoNetworkTimeInfo> getNetworkTimeInfo()

Obtain synchronization network time information.

Available since: 2.9.0 Description: Obtain synchronization network time(NTP), including timestamp and maximum deviation. Use cases: When performing multi-terminal synchronization behaviors, network time synchronization is required. When to call: It needs to be called after createEngine. Restrictions: None.

Implementation

Future<ZegoNetworkTimeInfo> getNetworkTimeInfo() async {
  return await ZegoExpressImpl.instance.getNetworkTimeInfo();
}