getSystemTime method

Future<String> getSystemTime()

Get the time of the device under test.

Returns current device time as string

For example:

var time = await driver.device.getSystemTime();
expect(DateTime.parse(time) is DateTime, true);

Implementation

Future<String> getSystemTime() => _client.send(
    _handler.device.buildDeviceSystemTimeRequest(),
    _handler.device.parseDeviceSystemTimeResponse);