getServerTime method

  1. @override
Future<V2TimValueCallback<int>> getServerTime()
override

获取服务器当前时间

注意: web不支持该接口

Implementation

@override
Future<V2TimValueCallback<int>> getServerTime() async {
  var resp = V2TimValueCallback<int>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        'getServerTime',
        buildTimManagerParam(
          {},
        ),
      ),
    ),
  );
  log("getServerTime", {}, resp.toLogString());
  return resp;
}