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>CloseKeyboardAction</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   
170  
171  
172  
173  
174
175  
176   
177  
178  
179  
180  
181
182
183<div class="sum-details-links">
184
185Summary:
186
187
188
189
190
191
192
193
194
195  <a href="#pubctors">Ctors</a>
196  
197
198
199
200  &#124; <a href="#pubmethods">Methods</a>
201  
202
203
204
205  &#124; <a href="#inhmethods">Inherited Methods</a>
206
207&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
208
209</div><!-- end sum-details-links -->
210</div><!-- end api-info-block -->
211
212<div class="api apilevel-" id="jd-content">
213
214<!-- ======== START OF CLASS DATA ======== -->
215
216<h1 class="api-title">CloseKeyboardAction</h1>
217<p>
218<code class="api-signature">
219  public
220  
221  final
222  
223  class
224  CloseKeyboardAction
225</code>
226<br>
227
228
229<code class="api-signature">
230  
231    extends Object
232  
233  
234  
235</code>
236
237<code class="api-signature">
238  
239  
240      implements
241      
242        <a href="/reference/android/support/test/espresso/ViewAction.html">ViewAction</a>
243      
244  
245  
246</code>
247
248</p><table class="jd-inheritance-table">
249
250
251  <tr>
252    
253    <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object
254    </td>
255  </tr>
256  
257
258  <tr>
259    
260      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
261    
262    <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.action.CloseKeyboardAction
263    </td>
264  </tr>
265  
266
267</table>
268  
269
270    
271
272<br><hr>
273
274
275  <p>Closes soft keyboard.
276</p>
277
278
279
280
281
282
283
284<h2 class="api-section">Summary</h2>
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308<!-- ======== CONSTRUCTOR SUMMARY ======== -->
309<table id="pubctors" class="responsive constructors">
310<tr><th colspan="2"><h3>Public constructors</h3></th></tr>
311
312
313
314  
315  <tr class="api apilevel-" >
316  
317  
318    <td width="100%">
319      <code>
320      <a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html#CloseKeyboardAction()">CloseKeyboardAction</a>()
321      </code>
322      
323    </td>
324  </tr>
325  
326
327
328</table>
329
330
331
332
333
334
335<!-- ========== METHOD SUMMARY =========== -->
336<table id="pubmethods" class="responsive methods">
337<tr><th colspan="2"><h3>Public methods</h3></th></tr>
338
339
340
341  
342  <tr class="api apilevel-" >
343  
344  
345    <td><code>
346        
347        
348        
349        
350        
351        Matcher&lt;View&gt;</code>
352    </td>
353  
354    <td width="100%">
355      <code>
356      <a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html#getConstraints()">getConstraints</a>()
357      </code>
358      
359        <p>A mechanism for ViewActions to specify what type of views they can operate on.
360        
361    
362</p>
363      
364    </td>
365  </tr>
366  
367
368  
369  <tr class="api apilevel-" >
370  
371  
372    <td><code>
373        
374        
375        
376        
377        
378        String</code>
379    </td>
380  
381    <td width="100%">
382      <code>
383      <a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html#getDescription()">getDescription</a>()
384      </code>
385      
386        <p>Returns a description of the view action.
387        
388    
389</p>
390      
391    </td>
392  </tr>
393  
394
395  
396  <tr class="api apilevel-" >
397  
398  
399    <td><code>
400        
401        
402        
403        
404        
405        void</code>
406    </td>
407  
408    <td width="100%">
409      <code>
410      <a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html#perform(android.support.test.espresso.UiController, android.view.View)">perform</a>(<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, View view)
411      </code>
412      
413        <p>Performs this action on the given view.
414        
415    
416</p>
417      
418    </td>
419  </tr>
420  
421
422
423</table>
424
425
426
427
428
429
430
431<!-- ========== METHOD SUMMARY =========== -->
432<table id="inhmethods" class="methods inhtable">
433<tr><th><h3>Inherited methods</h3></th></tr>
434
435
436<tr class="api apilevel-" >
437<td colspan="2">
438
439  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
440          ><img height="34" id="inherited-methods-java.lang.Object-trigger"
441          src="/assets/images/styles/disclosure_down.png"
442          class="jd-expando-trigger-img" /></a>From
443class
444<code>
445  
446    java.lang.Object
447  
448</code>
449<div id="inherited-methods-java.lang.Object">
450  <div id="inherited-methods-java.lang.Object-list"
451        class="jd-inheritedlinks">
452  </div>
453  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
454    <table class="jd-sumtable-expando responsive">
455      
456
457
458  
459  <tr class="api apilevel-" >
460  
461  
462    <td><code>
463        
464        
465        
466        
467        
468        Object</code>
469    </td>
470  
471    <td width="100%">
472      <code>
473      clone()
474      </code>
475      
476    </td>
477  </tr>
478  
479
480  
481  <tr class="api apilevel-" >
482  
483  
484    <td><code>
485        
486        
487        
488        
489        
490        boolean</code>
491    </td>
492  
493    <td width="100%">
494      <code>
495      equals(Object arg0)
496      </code>
497      
498    </td>
499  </tr>
500  
501
502  
503  <tr class="api apilevel-" >
504  
505  
506    <td><code>
507        
508        
509        
510        
511        
512        void</code>
513    </td>
514  
515    <td width="100%">
516      <code>
517      finalize()
518      </code>
519      
520    </td>
521  </tr>
522  
523
524  
525  <tr class="api apilevel-" >
526  
527  
528    <td><code>
529        
530        
531        
532        final
533        
534        Class&lt;?&gt;</code>
535    </td>
536  
537    <td width="100%">
538      <code>
539      getClass()
540      </code>
541      
542    </td>
543  </tr>
544  
545
546  
547  <tr class="api apilevel-" >
548  
549  
550    <td><code>
551        
552        
553        
554        
555        
556        int</code>
557    </td>
558  
559    <td width="100%">
560      <code>
561      hashCode()
562      </code>
563      
564    </td>
565  </tr>
566  
567
568  
569  <tr class="api apilevel-" >
570  
571  
572    <td><code>
573        
574        
575        
576        final
577        
578        void</code>
579    </td>
580  
581    <td width="100%">
582      <code>
583      notify()
584      </code>
585      
586    </td>
587  </tr>
588  
589
590  
591  <tr class="api apilevel-" >
592  
593  
594    <td><code>
595        
596        
597        
598        final
599        
600        void</code>
601    </td>
602  
603    <td width="100%">
604      <code>
605      notifyAll()
606      </code>
607      
608    </td>
609  </tr>
610  
611
612  
613  <tr class="api apilevel-" >
614  
615  
616    <td><code>
617        
618        
619        
620        
621        
622        String</code>
623    </td>
624  
625    <td width="100%">
626      <code>
627      toString()
628      </code>
629      
630    </td>
631  </tr>
632  
633
634  
635  <tr class="api apilevel-" >
636  
637  
638    <td><code>
639        
640        
641        
642        final
643        
644        void</code>
645    </td>
646  
647    <td width="100%">
648      <code>
649      wait(long arg0, int arg1)
650      </code>
651      
652    </td>
653  </tr>
654  
655
656  
657  <tr class="api apilevel-" >
658  
659  
660    <td><code>
661        
662        
663        
664        final
665        
666        void</code>
667    </td>
668  
669    <td width="100%">
670      <code>
671      wait(long arg0)
672      </code>
673      
674    </td>
675  </tr>
676  
677
678  
679  <tr class="api apilevel-" >
680  
681  
682    <td><code>
683        
684        
685        
686        final
687        
688        void</code>
689    </td>
690  
691    <td width="100%">
692      <code>
693      wait()
694      </code>
695      
696    </td>
697  </tr>
698  
699
700
701    </table>
702  </div>
703</div>
704</td></tr>
705
706
707
708<tr class="api apilevel-" >
709<td colspan="2">
710
711  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.espresso.ViewAction" class="jd-expando-trigger closed"
712          ><img height="34" id="inherited-methods-android.support.test.espresso.ViewAction-trigger"
713          src="/assets/images/styles/disclosure_down.png"
714          class="jd-expando-trigger-img" /></a>From
715interface
716<code>
717  
718    <a href="/reference/android/support/test/espresso/ViewAction.html">android.support.test.espresso.ViewAction</a>
719  
720</code>
721<div id="inherited-methods-android.support.test.espresso.ViewAction">
722  <div id="inherited-methods-android.support.test.espresso.ViewAction-list"
723        class="jd-inheritedlinks">
724  </div>
725  <div id="inherited-methods-android.support.test.espresso.ViewAction-summary" style="display: none;">
726    <table class="jd-sumtable-expando responsive">
727      
728
729
730  
731  <tr class="api apilevel-" >
732  
733  
734    <td><code>
735        abstract
736        
737        
738        
739        
740        Matcher&lt;View&gt;</code>
741    </td>
742  
743    <td width="100%">
744      <code>
745      <a href="/reference/android/support/test/espresso/ViewAction.html#getConstraints()">getConstraints</a>()
746      </code>
747      
748        <p>A mechanism for ViewActions to specify what type of views they can operate on.
749        
750    
751</p>
752      
753    </td>
754  </tr>
755  
756
757  
758  <tr class="api apilevel-" >
759  
760  
761    <td><code>
762        abstract
763        
764        
765        
766        
767        String</code>
768    </td>
769  
770    <td width="100%">
771      <code>
772      <a href="/reference/android/support/test/espresso/ViewAction.html#getDescription()">getDescription</a>()
773      </code>
774      
775        <p>Returns a description of the view action.
776        
777    
778</p>
779      
780    </td>
781  </tr>
782  
783
784  
785  <tr class="api apilevel-" >
786  
787  
788    <td><code>
789        abstract
790        
791        
792        
793        
794        void</code>
795    </td>
796  
797    <td width="100%">
798      <code>
799      <a href="/reference/android/support/test/espresso/ViewAction.html#perform(android.support.test.espresso.UiController, android.view.View)">perform</a>(<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, View view)
800      </code>
801      
802        <p>Performs this action on the given view.
803        
804    
805</p>
806      
807    </td>
808  </tr>
809  
810
811
812    </table>
813  </div>
814</div>
815</td></tr>
816
817
818</table>
819
820
821
822<!-- XML Attributes -->
823
824
825<!-- Enum Values -->
826
827
828<!-- Constants -->
829
830
831<!-- Fields -->
832
833
834<!-- Public ctors -->
835
836
837<!-- ========= CONSTRUCTOR DETAIL ======== -->
838<h2 class="api-section">Public constructors</h2>
839
840
841
842<A NAME="CloseKeyboardAction()"></A>
843
844<div class="api apilevel-">
845    <h3 class="api-name">CloseKeyboardAction</h3>
846    <div class="api-level">
847      <div></div>
848      
849  
850
851    </div>
852<pre class="api-signature no-pretty-print">
853CloseKeyboardAction ()</pre>
854    
855    
856
857    
858  <p></p>
859
860</div>
861
862
863
864
865
866<!-- ========= CONSTRUCTOR DETAIL ======== -->
867<!-- Protected ctors -->
868
869
870
871<!-- ========= METHOD DETAIL ======== -->
872<!-- Public methdos -->
873
874<h2 class="api-section">Public methods</h2>
875
876
877
878<A NAME="getConstraints()"></A>
879
880<div class="api apilevel-">
881    <h3 class="api-name">getConstraints</h3>
882    <div class="api-level">
883      <div></div>
884      
885  
886
887    </div>
888<pre class="api-signature no-pretty-print">
889Matcher&lt;View&gt; getConstraints ()</pre>
890    
891    
892
893    
894  <p>A mechanism for ViewActions to specify what type of views they can operate on.
895
896 A ViewAction can demand that the view passed to perform meets certain constraints. For example
897 it may want to ensure the view is already in the viewable physical screen of the device or is
898 of a certain type.</p>
899    <table class="responsive">
900      <tr><th colspan=2>Returns</th></tr>
901      <tr>
902        <td><code>Matcher&lt;View&gt;</code></td>
903        <td width="100%">a <a href="http://hamcrest.org/JavaHamcrest/javadoc/1.3/org/hamcrest/Matcher.html">
904     <code>Matcher</code></a> that will be tested prior to calling perform.
905</td>
906      </tr>
907    </table>
908
909</div>
910
911
912<A NAME="getDescription()"></A>
913
914<div class="api apilevel-">
915    <h3 class="api-name">getDescription</h3>
916    <div class="api-level">
917      <div></div>
918      
919  
920
921    </div>
922<pre class="api-signature no-pretty-print">
923String getDescription ()</pre>
924    
925    
926
927    
928  <p>Returns a description of the view action. The description should not be overly long and should
929 fit nicely in a sentence like: "performing %description% action on view with id ..."
930</p>
931    <table class="responsive">
932      <tr><th colspan=2>Returns</th></tr>
933      <tr>
934        <td><code>String</code></td>
935        <td width="100%"><!-- no returns description in source --></td>
936      </tr>
937    </table>
938
939</div>
940
941
942<A NAME="perform(android.support.test.espresso.UiController, android.view.View)"></A>
943
944<div class="api apilevel-">
945    <h3 class="api-name">perform</h3>
946    <div class="api-level">
947      <div></div>
948      
949  
950
951    </div>
952<pre class="api-signature no-pretty-print">
953void perform (<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, 
954                View view)</pre>
955    
956    
957
958    
959  <p>Performs this action on the given view.</p>
960    <table class="responsive">
961    <tr><th colspan=2>Parameters</th></tr>
962      <tr>
963        <td><code>uiController</code></td>
964        <td width="100%">
965          <code>UiController</code>:
966          the controller to use to interact with the UI.</td>
967      </tr>
968      <tr>
969        <td><code>view</code></td>
970        <td width="100%">
971          <code>View</code>:
972          the view to act upon. never null.
973</td>
974      </tr>
975    </table>
976
977</div>
978
979
980
981
982
983<!-- ========= METHOD DETAIL ======== -->
984
985
986
987<!-- ========= END OF CLASS DATA ========= -->
988
989</div><!-- end jd-content -->
990
991
992
993<div class="data-reference-resources-wrapper">
994  
995  <ul data-reference-resources>
996    
997    
998    <li><h2>Interfaces</h2>
999      <ul>
1000          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.html">AdapterViewProtocol</a></li>
1001          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.DataFunction.html">AdapterViewProtocol.DataFunction</a></li>
1002          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CoordinatesProvider.html">CoordinatesProvider</a></li>
1003          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/PrecisionDescriber.html">PrecisionDescriber</a></li>
1004          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.html">Swiper</a></li>
1005          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.html">Tapper</a></li>
1006      </ul>
1007    </li>
1008    
1009    <li><h2>Classes</h2>
1010      <ul>
1011          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterDataLoaderAction.html">AdapterDataLoaderAction</a></li>
1012          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.html">AdapterViewProtocol.AdaptedData</a></li>
1013          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.Builder.html">AdapterViewProtocol.AdaptedData.Builder</a></li>
1014          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocols.html">AdapterViewProtocols</a></li>
1015          <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html">CloseKeyboardAction</a></li>
1016          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EditorAction.html">EditorAction</a></li>
1017          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a></li>
1018          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.Builder.html">EspressoKey.Builder</a></li>
1019          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralClickAction.html">GeneralClickAction</a></li>
1020          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralSwipeAction.html">GeneralSwipeAction</a></li>
1021          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/KeyEventAction.html">KeyEventAction</a></li>
1022          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.html">MotionEvents</a></li>
1023          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.DownResultHolder.html">MotionEvents.DownResultHolder</a></li>
1024          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/OpenLinkAction.html">OpenLinkAction</a></li>
1025          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html">ReplaceTextAction</a></li>
1026          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ScrollToAction.html">ScrollToAction</a></li>
1027          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/TypeTextAction.html">TypeTextAction</a></li>
1028          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ViewActions.html">ViewActions</a></li>
1029      </ul>
1030    </li>
1031    
1032    <li><h2>Enums</h2>
1033      <ul>
1034          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a></li>
1035          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Press.html">Press</a></li>
1036          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swipe.html">Swipe</a></li>
1037          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></li>
1038          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tap.html">Tap</a></li>
1039          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.Status.html">Tapper.Status</a></li>
1040      </ul>
1041    </li>
1042    
1043    
1044  </ul>
1045  
1046</div>
1047
1048
1049
1050</body>
1051</html>
1052