Home | History | Annotate | Download | only in action
      1 
      2 
      3 
      4 
      5 
      6 
      7 
      8 
      9 
     10 
     11 
     12 
     13 
     14 
     15 
     16 
     17 
     18 
     19 
     20 
     21 
     22 
     23 
     24 
     25 
     26 
     27 
     28 
     29 
     30 
     31 
     32 
     33 
     34 
     35 
     36 
     37 
     38 
     39 
     40 
     41 
     42 
     43 
     44 
     45 
     46 
     47 
     48 
     49 
     50 
     51 
     52 
     53 
     54 
     55 
     56 
     57 
     58 
     59 
     60 
     61 
     62 
     63 
     64 
     65 
     66 
     67 
     68 
     69 
     70 
     71 
     72 
     73 
     74 
     75 
     76 
     77 
     78 
     79 
     80 
     81 
     82 
     83 
     84 
     85 
     86 
     87 
     88 
     89 
     90 
     91 
     92 
     93 
     94 
     95 
     96 
     97 
     98 
     99 
    100 
    101 
    102 
    103 
    104 
    105 
    106 
    107 
    108 
    109 
    110 
    111 
    112 
    113 
    114 
    115 
    116 
    117 
    118 
    119 <!DOCTYPE html>
    120 <html devsite>
    121 <head>
    122 
    123   
    124     <meta name="top_category" value="develop" />
    125     
    126     <meta name="subcategory" value="reference" />
    127 
    128     
    129       <meta name="book_path" value="/reference/android/support/test/_book.yaml" />
    130     
    131 
    132     
    133 
    134     
    135 
    136     
    137 
    138     
    139 
    140     
    141 
    142     
    143 
    144 
    145 <title>Swiper</title>
    146 
    147 
    148 </head>
    149 
    150 <body class="gc-documentation develop reference api apilevel-">
    151 <div id="doc-api-level" class="" style="display:none"></div>
    152 
    153 
    154 
    155 
    156 <div id="naMessage"></div>
    157 
    158 <div id="api-info-block">
    159 <div class="api-level">
    160   
    161   
    162   
    163 
    164 </div>
    165 
    166 
    167 
    168 
    169 <div class="sum-details-links">
    170 
    171 Summary:
    172 
    173   <a href="#nestedclasses">Nested Classes</a>
    174   
    175 
    176 
    177 
    178 
    179 
    180 
    181 
    182 
    183 
    184 
    185 
    186   &#124; <a href="#pubmethods">Methods</a>
    187   
    188 
    189 
    190 
    191 &#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
    192 
    193 </div><!-- end sum-details-links -->
    194 </div><!-- end api-info-block -->
    195 
    196 <div class="api apilevel-" id="jd-content">
    197 
    198 <!-- ======== START OF CLASS DATA ======== -->
    199 
    200 <h1 class="api-title">Swiper</h1>
    201 <p>
    202 <code class="api-signature">
    203   public
    204   
    205   
    206   
    207   interface
    208   Swiper
    209 </code>
    210 <br>
    211 
    212 
    213 <code class="api-signature">
    214   
    215   
    216   
    217 </code>
    218 
    219 </p><table class="jd-inheritance-table">
    220 
    221 
    222   <tr>
    223     
    224     <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.action.Swiper
    225     </td>
    226   </tr>
    227   
    228 
    229 </table>
    230   
    231   <table class="jd-sumtable jd-sumtable-subclasses"><tr><td colspan="2" style="border:none;margin:0;padding:0;">
    232   
    233   <a href="#" onclick="return toggleInherited(this, null)" id="subclasses-indirect" class="jd-expando-trigger closed"
    234           ><img height="34" id="subclasses-indirect-trigger"
    235           src="/assets/images/styles/disclosure_down.png"
    236           class="jd-expando-trigger-img" /></a>Known Indirect Subclasses
    237   
    238   <div id="subclasses-indirect">
    239       <div id="subclasses-indirect-list"
    240               class="jd-inheritedlinks"
    241               
    242               >
    243           
    244             
    245               <a href="/reference/android/support/test/espresso/action/Swipe.html">Swipe</a>
    246             
    247           
    248       </div>
    249       <div id="subclasses-indirect-summary"
    250               style="display: none;"
    251               >
    252   
    253   <table class="jd-sumtable-expando">
    254     
    255       <tr class="alt-color api apilevel-" >
    256         <td class="jd-linkcol"><a href="/reference/android/support/test/espresso/action/Swipe.html">Swipe</a></td>
    257         <td class="jd-descrcol" width="100%">
    258           Executes different swipe types to given positions.&nbsp;
    259           
    260     
    261 
    262         </td>
    263       </tr>
    264       
    265     
    266   </table>
    267 
    268       </div>
    269   </div>
    270   </td></tr></table>
    271 
    272     
    273 
    274 <br><hr>
    275 
    276 
    277   <p>Interface to implement different swipe types.
    278 </p>
    279 
    280 
    281 
    282 
    283 
    284 
    285 
    286 <h2 class="api-section">Summary</h2>
    287 
    288 
    289 
    290 <!-- ======== NESTED CLASS SUMMARY ======== -->
    291 <table id="nestedclasses" class="responsive">
    292 <tr><th colspan="2"><h3>Nested classes</h3></th></tr>
    293 
    294 
    295   
    296     <tr class="api apilevel-" >
    297       <td class="jd-typecol"><code>
    298         
    299         
    300         
    301         
    302         enum</code></td>
    303       <td class="jd-descrcol" width="100%">
    304         <code><a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></code>
    305         <p>The result of the swipe.&nbsp;
    306         
    307     
    308 </p>
    309       </td>
    310     </tr>
    311     
    312     
    313 
    314 
    315 
    316 
    317 
    318 
    319 
    320 
    321 
    322 
    323 
    324 
    325 
    326 
    327 
    328 
    329 
    330 
    331 
    332 
    333 
    334 
    335 
    336 
    337 
    338 
    339 
    340 <!-- ========== METHOD SUMMARY =========== -->
    341 <table id="pubmethods" class="responsive methods">
    342 <tr><th colspan="2"><h3>Public methods</h3></th></tr>
    343 
    344 
    345 
    346   
    347   <tr class="api apilevel-" >
    348   
    349   
    350     <td><code>
    351         abstract
    352         
    353         
    354         
    355         
    356         <a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></code>
    357     </td>
    358   
    359     <td width="100%">
    360       <code>
    361       <a href="/reference/android/support/test/espresso/action/Swiper.html#sendSwipe(android.support.test.espresso.UiController, float[], float[], float[])">sendSwipe</a>(<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, float[] startCoordinates, float[] endCoordinates, float[] precision)
    362       </code>
    363       
    364         <p>Swipes from <code>startCoordinates</code> to <code>endCoordinates</code> using the given
    365  <code>uiController</code> to send <code><a href="/reference/android/view/MotionEvent.html">MotionEvent</a></code>s.
    366         
    367     
    368 </p>
    369       
    370     </td>
    371   </tr>
    372   
    373 
    374 
    375 </table>
    376 
    377 
    378 
    379 
    380 
    381 
    382 
    383 
    384 <!-- XML Attributes -->
    385 
    386 
    387 <!-- Enum Values -->
    388 
    389 
    390 <!-- Constants -->
    391 
    392 
    393 <!-- Fields -->
    394 
    395 
    396 <!-- Public ctors -->
    397 
    398 
    399 
    400 <!-- ========= CONSTRUCTOR DETAIL ======== -->
    401 <!-- Protected ctors -->
    402 
    403 
    404 
    405 <!-- ========= METHOD DETAIL ======== -->
    406 <!-- Public methdos -->
    407 
    408 <h2 class="api-section">Public methods</h2>
    409 
    410 
    411 
    412 <A NAME="sendSwipe(android.support.test.espresso.UiController, float[], float[], float[])"></A>
    413 
    414 <div class="api apilevel-">
    415     <h3 class="api-name">sendSwipe</h3>
    416     <div class="api-level">
    417       <div></div>
    418       
    419   
    420 
    421     </div>
    422 <pre class="api-signature no-pretty-print">
    423 <a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a> sendSwipe (<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, 
    424                 float[] startCoordinates, 
    425                 float[] endCoordinates, 
    426                 float[] precision)</pre>
    427     
    428     
    429 
    430     
    431   <p>Swipes from <code>startCoordinates</code> to <code>endCoordinates</code> using the given
    432  <code>uiController</code> to send <code><a href="/reference/android/view/MotionEvent.html">MotionEvent</a></code>s.</p>
    433     <table class="responsive">
    434     <tr><th colspan=2>Parameters</th></tr>
    435       <tr>
    436         <td><code>uiController</code></td>
    437         <td width="100%">
    438           <code>UiController</code>:
    439           a UiController to use to send MotionEvents to the screen.</td>
    440       </tr>
    441       <tr>
    442         <td><code>startCoordinates</code></td>
    443         <td width="100%">
    444           <code>float</code>:
    445           a float[] with x and y co-ordinates of the start of the swipe.</td>
    446       </tr>
    447       <tr>
    448         <td><code>endCoordinates</code></td>
    449         <td width="100%">
    450           <code>float</code>:
    451           a float[] with x and y co-ordinates of the end of the swipe.</td>
    452       </tr>
    453       <tr>
    454         <td><code>precision</code></td>
    455         <td width="100%">
    456           <code>float</code>:
    457           a float[] with x and y values of precision of the tap.</td>
    458       </tr>
    459     </table>
    460     <table class="responsive">
    461       <tr><th colspan=2>Returns</th></tr>
    462       <tr>
    463         <td><code><a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></code></td>
    464         <td width="100%">The status of the swipe.
    465 </td>
    466       </tr>
    467     </table>
    468 
    469 </div>
    470 
    471 
    472 
    473 
    474 
    475 <!-- ========= METHOD DETAIL ======== -->
    476 
    477 
    478 
    479 <!-- ========= END OF CLASS DATA ========= -->
    480 
    481 </div><!-- end jd-content -->
    482 
    483 
    484 
    485 <div class="data-reference-resources-wrapper">
    486   
    487   <ul data-reference-resources>
    488     
    489     
    490     <li><h2>Interfaces</h2>
    491       <ul>
    492           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.html">AdapterViewProtocol</a></li>
    493           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.DataFunction.html">AdapterViewProtocol.DataFunction</a></li>
    494           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CoordinatesProvider.html">CoordinatesProvider</a></li>
    495           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/PrecisionDescriber.html">PrecisionDescriber</a></li>
    496           <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.html">Swiper</a></li>
    497           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.html">Tapper</a></li>
    498       </ul>
    499     </li>
    500     
    501     <li><h2>Classes</h2>
    502       <ul>
    503           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterDataLoaderAction.html">AdapterDataLoaderAction</a></li>
    504           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.html">AdapterViewProtocol.AdaptedData</a></li>
    505           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.Builder.html">AdapterViewProtocol.AdaptedData.Builder</a></li>
    506           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocols.html">AdapterViewProtocols</a></li>
    507           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html">CloseKeyboardAction</a></li>
    508           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EditorAction.html">EditorAction</a></li>
    509           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a></li>
    510           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.Builder.html">EspressoKey.Builder</a></li>
    511           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralClickAction.html">GeneralClickAction</a></li>
    512           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralSwipeAction.html">GeneralSwipeAction</a></li>
    513           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/KeyEventAction.html">KeyEventAction</a></li>
    514           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.html">MotionEvents</a></li>
    515           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.DownResultHolder.html">MotionEvents.DownResultHolder</a></li>
    516           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/OpenLinkAction.html">OpenLinkAction</a></li>
    517           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html">ReplaceTextAction</a></li>
    518           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ScrollToAction.html">ScrollToAction</a></li>
    519           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/TypeTextAction.html">TypeTextAction</a></li>
    520           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ViewActions.html">ViewActions</a></li>
    521       </ul>
    522     </li>
    523     
    524     <li><h2>Enums</h2>
    525       <ul>
    526           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a></li>
    527           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Press.html">Press</a></li>
    528           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swipe.html">Swipe</a></li>
    529           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></li>
    530           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tap.html">Tap</a></li>
    531           <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.Status.html">Tapper.Status</a></li>
    532       </ul>
    533     </li>
    534     
    535     
    536   </ul>
    537   
    538 </div>
    539 
    540 
    541 
    542 </body>
    543 </html>
    544