| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <!DOCTYPE html> |
| <html devsite> |
| <head> |
| |
| |
| <meta name="top_category" value="develop" /> |
| |
| <meta name="subcategory" value="reference" /> |
| |
| |
| <meta name="book_path" value="/reference/android/support/test/_book.yaml" /> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <title>OpenLinkAction</title> |
| |
| |
| </head> |
| |
| <body class="gc-documentation develop reference api apilevel-"> |
| <div id="doc-api-level" class="" style="display:none"></div> |
| |
| |
| |
| |
| <div id="naMessage"></div> |
| |
| <div id="api-info-block"> |
| <div class="api-level"> |
| |
| |
| |
| |
| </div> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <div class="sum-details-links"> |
| |
| Summary: |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <a href="#pubctors">Ctors</a> |
| |
| |
| |
| |
| | <a href="#pubmethods">Methods</a> |
| |
| |
| |
| |
| | <a href="#inhmethods">Inherited Methods</a> |
| |
| | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> |
| |
| </div><!-- end sum-details-links --> |
| </div><!-- end api-info-block --> |
| |
| <div class="api apilevel-" id="jd-content"> |
| |
| <!-- ======== START OF CLASS DATA ======== --> |
| |
| <h1 class="api-title">OpenLinkAction</h1> |
| <p> |
| <code class="api-signature"> |
| public |
| |
| final |
| |
| class |
| OpenLinkAction |
| </code> |
| <br> |
| |
| |
| <code class="api-signature"> |
| |
| extends Object |
| |
| |
| |
| </code> |
| |
| <code class="api-signature"> |
| |
| |
| implements |
| |
| <a href="/reference/android/support/test/espresso/ViewAction.html">ViewAction</a> |
| |
| |
| |
| </code> |
| |
| </p><table class="jd-inheritance-table"> |
| |
| |
| <tr> |
| |
| <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object |
| </td> |
| </tr> |
| |
| |
| <tr> |
| |
| <td class="jd-inheritance-space"> ↳</td> |
| |
| <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.action.OpenLinkAction |
| </td> |
| </tr> |
| |
| |
| </table> |
| |
| |
| |
| |
| <br><hr> |
| |
| |
| <p>Invokes onClick of a link within a TextView (made with Linkify or via another method). |
| Why not issue a real click event to the screen? Unfortunately, it does not seem to be possible |
| (at least using public APIs) to determine the location of the link on the screen. |
| </p> |
| |
| |
| |
| |
| |
| |
| |
| <h2 class="api-section">Summary</h2> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <table id="pubctors" class="responsive constructors"> |
| <tr><th colspan="2"><h3>Public constructors</h3></th></tr> |
| |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td width="100%"> |
| <code> |
| <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<String> linkTextMatcher, Matcher<Uri> uriMatcher) |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| </table> |
| |
| |
| |
| |
| |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| <table id="pubmethods" class="responsive methods"> |
| <tr><th colspan="2"><h3>Public methods</h3></th></tr> |
| |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| Matcher<View></code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| <a href="/reference/android/support/test/espresso/action/OpenLinkAction.html#getConstraints()">getConstraints</a>() |
| </code> |
| |
| <p>A mechanism for ViewActions to specify what type of views they can operate on. |
| |
| |
| </p> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| String</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| <a href="/reference/android/support/test/espresso/action/OpenLinkAction.html#getDescription()">getDescription</a>() |
| </code> |
| |
| <p>Returns a description of the view action. |
| |
| |
| </p> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| <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) |
| </code> |
| |
| <p>Performs this action on the given view. |
| |
| |
| </p> |
| |
| </td> |
| </tr> |
| |
| |
| |
| </table> |
| |
| |
| |
| |
| |
| |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| <table id="inhmethods" class="methods inhtable"> |
| <tr><th><h3>Inherited methods</h3></th></tr> |
| |
| |
| <tr class="api apilevel-" > |
| <td colspan="2"> |
| |
| <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" |
| ><img height="34" id="inherited-methods-java.lang.Object-trigger" |
| src="/assets/images/styles/disclosure_down.png" |
| class="jd-expando-trigger-img" /></a>From |
| class |
| <code> |
| |
| java.lang.Object |
| |
| </code> |
| <div id="inherited-methods-java.lang.Object"> |
| <div id="inherited-methods-java.lang.Object-list" |
| class="jd-inheritedlinks"> |
| </div> |
| <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> |
| <table class="jd-sumtable-expando responsive"> |
| |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| Object</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| clone() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| boolean</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| equals(Object arg0) |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| finalize() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| final |
| |
| Class<?></code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| getClass() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| int</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| hashCode() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| final |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| notify() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| final |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| notifyAll() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| |
| |
| String</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| toString() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| final |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| wait(long arg0, int arg1) |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| final |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| wait(long arg0) |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| |
| |
| |
| final |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| wait() |
| </code> |
| |
| </td> |
| </tr> |
| |
| |
| |
| </table> |
| </div> |
| </div> |
| </td></tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| <td colspan="2"> |
| |
| <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.espresso.ViewAction" class="jd-expando-trigger closed" |
| ><img height="34" id="inherited-methods-android.support.test.espresso.ViewAction-trigger" |
| src="/assets/images/styles/disclosure_down.png" |
| class="jd-expando-trigger-img" /></a>From |
| interface |
| <code> |
| |
| <a href="/reference/android/support/test/espresso/ViewAction.html">android.support.test.espresso.ViewAction</a> |
| |
| </code> |
| <div id="inherited-methods-android.support.test.espresso.ViewAction"> |
| <div id="inherited-methods-android.support.test.espresso.ViewAction-list" |
| class="jd-inheritedlinks"> |
| </div> |
| <div id="inherited-methods-android.support.test.espresso.ViewAction-summary" style="display: none;"> |
| <table class="jd-sumtable-expando responsive"> |
| |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| abstract |
| |
| |
| |
| |
| Matcher<View></code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| <a href="/reference/android/support/test/espresso/ViewAction.html#getConstraints()">getConstraints</a>() |
| </code> |
| |
| <p>A mechanism for ViewActions to specify what type of views they can operate on. |
| |
| |
| </p> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| abstract |
| |
| |
| |
| |
| String</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| <a href="/reference/android/support/test/espresso/ViewAction.html#getDescription()">getDescription</a>() |
| </code> |
| |
| <p>Returns a description of the view action. |
| |
| |
| </p> |
| |
| </td> |
| </tr> |
| |
| |
| |
| <tr class="api apilevel-" > |
| |
| |
| <td><code> |
| abstract |
| |
| |
| |
| |
| void</code> |
| </td> |
| |
| <td width="100%"> |
| <code> |
| <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) |
| </code> |
| |
| <p>Performs this action on the given view. |
| |
| |
| </p> |
| |
| </td> |
| </tr> |
| |
| |
| |
| </table> |
| </div> |
| </div> |
| </td></tr> |
| |
| |
| </table> |
| |
| |
| |
| <!-- XML Attributes --> |
| |
| |
| <!-- Enum Values --> |
| |
| |
| <!-- Constants --> |
| |
| |
| <!-- Fields --> |
| |
| |
| <!-- Public ctors --> |
| |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <h2 class="api-section">Public constructors</h2> |
| |
| |
| |
| <A NAME="OpenLinkAction(org.hamcrest.Matcher<java.lang.String>, org.hamcrest.Matcher<android.net.Uri>)"></A> |
| |
| <div class="api apilevel-"> |
| <h3 class="api-name">OpenLinkAction</h3> |
| <div class="api-level"> |
| <div></div> |
| |
| |
| |
| </div> |
| <pre class="api-signature no-pretty-print"> |
| OpenLinkAction (Matcher<String> linkTextMatcher, |
| Matcher<Uri> uriMatcher)</pre> |
| |
| |
| |
| |
| <p></p> |
| <table class="responsive"> |
| <tr><th colspan=2>Parameters</th></tr> |
| <tr> |
| <td><code>linkTextMatcher</code></td> |
| <td width="100%"> |
| <code>Matcher</code> |
| <!-- no parameter comment --></td> |
| </tr> |
| <tr> |
| <td><code>uriMatcher</code></td> |
| <td width="100%"> |
| <code>Matcher</code> |
| <!-- no parameter comment --></td> |
| </tr> |
| </table> |
| |
| </div> |
| |
| |
| |
| |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <!-- Protected ctors --> |
| |
| |
| |
| <!-- ========= METHOD DETAIL ======== --> |
| <!-- Public methdos --> |
| |
| <h2 class="api-section">Public methods</h2> |
| |
| |
| |
| <A NAME="getConstraints()"></A> |
| |
| <div class="api apilevel-"> |
| <h3 class="api-name">getConstraints</h3> |
| <div class="api-level"> |
| <div></div> |
| |
| |
| |
| </div> |
| <pre class="api-signature no-pretty-print"> |
| Matcher<View> getConstraints ()</pre> |
| |
| |
| |
| |
| <p>A mechanism for ViewActions to specify what type of views they can operate on. |
| |
| A ViewAction can demand that the view passed to perform meets certain constraints. For example |
| it may want to ensure the view is already in the viewable physical screen of the device or is |
| of a certain type.</p> |
| <table class="responsive"> |
| <tr><th colspan=2>Returns</th></tr> |
| <tr> |
| <td><code>Matcher<View></code></td> |
| <td width="100%">a <a href="http://hamcrest.org/JavaHamcrest/javadoc/1.3/org/hamcrest/Matcher.html"> |
| <code>Matcher</code></a> that will be tested prior to calling perform. |
| </td> |
| </tr> |
| </table> |
| |
| </div> |
| |
| |
| <A NAME="getDescription()"></A> |
| |
| <div class="api apilevel-"> |
| <h3 class="api-name">getDescription</h3> |
| <div class="api-level"> |
| <div></div> |
| |
| |
| |
| </div> |
| <pre class="api-signature no-pretty-print"> |
| String getDescription ()</pre> |
| |
| |
| |
| |
| <p>Returns a description of the view action. The description should not be overly long and should |
| fit nicely in a sentence like: "performing %description% action on view with id ..." |
| </p> |
| <table class="responsive"> |
| <tr><th colspan=2>Returns</th></tr> |
| <tr> |
| <td><code>String</code></td> |
| <td width="100%"><!-- no returns description in source --></td> |
| </tr> |
| </table> |
| |
| </div> |
| |
| |
| <A NAME="perform(android.support.test.espresso.UiController, android.view.View)"></A> |
| |
| <div class="api apilevel-"> |
| <h3 class="api-name">perform</h3> |
| <div class="api-level"> |
| <div></div> |
| |
| |
| |
| </div> |
| <pre class="api-signature no-pretty-print"> |
| void perform (<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, |
| View view)</pre> |
| |
| |
| |
| |
| <p>Performs this action on the given view.</p> |
| <table class="responsive"> |
| <tr><th colspan=2>Parameters</th></tr> |
| <tr> |
| <td><code>uiController</code></td> |
| <td width="100%"> |
| <code>UiController</code>: |
| the controller to use to interact with the UI.</td> |
| </tr> |
| <tr> |
| <td><code>view</code></td> |
| <td width="100%"> |
| <code>View</code>: |
| the view to act upon. never null. |
| </td> |
| </tr> |
| </table> |
| |
| </div> |
| |
| |
| |
| |
| |
| <!-- ========= METHOD DETAIL ======== --> |
| |
| |
| |
| <!-- ========= END OF CLASS DATA ========= --> |
| |
| </div><!-- end jd-content --> |
| |
| |
| |
| <div class="data-reference-resources-wrapper"> |
| |
| <ul data-reference-resources> |
| |
| |
| <li><h2>Interfaces</h2> |
| <ul> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.html">AdapterViewProtocol</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.DataFunction.html">AdapterViewProtocol.DataFunction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CoordinatesProvider.html">CoordinatesProvider</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/PrecisionDescriber.html">PrecisionDescriber</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.html">Swiper</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.html">Tapper</a></li> |
| </ul> |
| </li> |
| |
| <li><h2>Classes</h2> |
| <ul> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterDataLoaderAction.html">AdapterDataLoaderAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.html">AdapterViewProtocol.AdaptedData</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.Builder.html">AdapterViewProtocol.AdaptedData.Builder</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocols.html">AdapterViewProtocols</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html">CloseKeyboardAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EditorAction.html">EditorAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.Builder.html">EspressoKey.Builder</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralClickAction.html">GeneralClickAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralSwipeAction.html">GeneralSwipeAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/KeyEventAction.html">KeyEventAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.html">MotionEvents</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.DownResultHolder.html">MotionEvents.DownResultHolder</a></li> |
| <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/action/OpenLinkAction.html">OpenLinkAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html">ReplaceTextAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ScrollToAction.html">ScrollToAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/TypeTextAction.html">TypeTextAction</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ViewActions.html">ViewActions</a></li> |
| </ul> |
| </li> |
| |
| <li><h2>Enums</h2> |
| <ul> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Press.html">Press</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swipe.html">Swipe</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tap.html">Tap</a></li> |
| <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.Status.html">Tapper.Status</a></li> |
| </ul> |
| </li> |
| |
| |
| </ul> |
| |
| </div> |
| |
| |
| |
| </body> |
| </html> |