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