calibrateTimeWithNtp static method

void calibrateTimeWithNtp(
  1. String ntpServer
)

Calibrate SDK time with a given NTP server.

SDK will try to get calibrated time from the NTP server with a default timeout 3 seconds. If failed, device time will be used for tracking data.

Implementation

static void calibrateTimeWithNtp(String ntpServer) {
  _channel.invokeMethod(
      'calibrateTimeWithNtp', <String, dynamic>{'ntpServer': ntpServer});
}