getOrientation method

Future<Orientation> getOrientation()

Get the device orientation.

Returns Orientation.

Example:

await driver.device.getOrientation();

Implementation

Future<Orientation> getOrientation() => _client.send(
    _handler.device.buildGetOrientationRequest(),
    _handler.device.parseGetOrientationResponse);