def long_click(self, pos, duration=<NUM_LIT>):
try:<EOL><INDENT>duration = float(duration)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(repr(duration)))<EOL><DEDENT>if not (<NUM_LIT:0> <= pos[<NUM_LIT:0>] <= <NUM_LIT:1>) or not (<NUM_LIT:0> <= pos[<NUM_LIT:1>] <= <NUM_LIT:1>):<EOL><INDENT>raise InvalidOperationException('<STR_LIT>'.format(repr(pos)))<EOL><DEDENT>return self.agent.input.longClick(pos[<NUM_LIT:0>], pos[<NUM_LIT:1>], duration)<EOL>
Similar to click but press the screen for the given time interval and then release

Args:
    pos (:obj:`2-list/2-tuple`): coordinates (x, y) in range from 0 to 1
    duration: duration of press the screen