#NEWLINE# @ property #NEWLINE# def swipe( self ) : #NEWLINE# #INDENT# '\n        Perform swipe action. if device platform greater than API 18, percent can be used and value between 0 and 1\n        Usages:\n        d().swipe.right()\n        d().swipe.left(steps=10)\n        d().swipe.up(steps=10)\n        d().swipe.down()\n        d().swipe("right", steps=20)\n        d().swipe("right", steps=20, percent=0.5)\n        ' #NEWLINE# @ param_to_property ( direction = [ 'up' , 'down' , 'right' , 'left' ] ) #NEWLINE# def _swipe( direction = 'left' , steps = 10 , percent = 1 ) : #NEWLINE# #INDENT# if ( percent == 1 ) : #NEWLINE# #INDENT# return self . jsonrpc . swipe ( self . selector , direction , steps ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . jsonrpc . swipe ( self . selector , direction , percent , steps ) #NEWLINE# #UNINDENT# #UNINDENT# return _swipe