(self, x, y, duration: Optional[float] = None)
return self.tap(x, y)
Combine tap and tap_hold

        Args:
            x, y: can be float(percent) or int
            duration (optional): tap_hold duration
Combine tap and tap_hold
Combine tap and tap_hold
def click(self, x, y, duration: Optional[float] = None):
        """
        Combine tap and tap_hold

        Args:
            x, y: can be float(percent) or int
            duration (optional): tap_hold duration
        """
        x, y = self._percent2pos(x, y)
        if duration:
            return self.tap_hold(x, y, duration)
        return self.tap(x, y)
def click ( self , x , y , duration : Optional [ float ] = None ) : x , y = self . _percent2pos ( x , y ) if duration : return self . tap_hold ( x , y , duration ) return self . tap ( x , y )