longPressKeycode method

Future<void> longPressKeycode(
  1. int keycode, {
  2. List<int>? metastate,
  3. List<int>? flags,
})

For Android Long press keycode

For example:

await driver.device.longPressKeycode(66, metastate: [1], flags: [32]);

Implementation

Future<void> longPressKeycode(int keycode,
        {List<int>? metastate, List<int>? flags}) =>
    _client.send(
        _handler.device.buildLongPressKeycodeRequest(keycode,
            metastate: metastate, flags: flags),
        _handler.device.parseLongPressKeycodeResponse);