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>ViewFinder</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 174 175 176 177 178 179 180 181 182 183 <a href="#pubmethods">Methods</a> 184 185 186 187 188 | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 189 190 </div><!-- end sum-details-links --> 191 </div><!-- end api-info-block --> 192 193 <div class="api apilevel-" id="jd-content"> 194 195 <!-- ======== START OF CLASS DATA ======== --> 196 197 <h1 class="api-title">ViewFinder</h1> 198 <p> 199 <code class="api-signature"> 200 public 201 202 203 204 interface 205 ViewFinder 206 </code> 207 <br> 208 209 210 <code class="api-signature"> 211 212 213 214 </code> 215 216 </p><table class="jd-inheritance-table"> 217 218 219 <tr> 220 221 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.ViewFinder 222 </td> 223 </tr> 224 225 226 </table> 227 228 <table class="jd-sumtable jd-sumtable-subclasses"><tr><td colspan="2" style="border:none;margin:0;padding:0;"> 229 230 <a href="#" onclick="return toggleInherited(this, null)" id="subclasses-indirect" class="jd-expando-trigger closed" 231 ><img height="34" id="subclasses-indirect-trigger" 232 src="/assets/images/styles/disclosure_down.png" 233 class="jd-expando-trigger-img" /></a>Known Indirect Subclasses 234 235 <div id="subclasses-indirect"> 236 <div id="subclasses-indirect-list" 237 class="jd-inheritedlinks" 238 239 > 240 241 242 <a href="/reference/android/support/test/espresso/base/ViewFinderImpl.html">ViewFinderImpl</a> 243 244 245 </div> 246 <div id="subclasses-indirect-summary" 247 style="display: none;" 248 > 249 250 <table class="jd-sumtable-expando"> 251 252 <tr class="alt-color api apilevel-" > 253 <td class="jd-linkcol"><a href="/reference/android/support/test/espresso/base/ViewFinderImpl.html">ViewFinderImpl</a></td> 254 <td class="jd-descrcol" width="100%"> 255 Implementation of <code><a href="/reference/android/support/test/espresso/ViewFinder.html">ViewFinder</a></code>. 256 257 258 259 </td> 260 </tr> 261 262 263 </table> 264 265 </div> 266 </div> 267 </td></tr></table> 268 269 270 271 <br><hr> 272 273 274 <p>Uses matchers to locate particular views within the view hierarchy. 275 </p> 276 277 278 279 280 281 282 283 <h2 class="api-section">Summary</h2> 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 <!-- ========== METHOD SUMMARY =========== --> 312 <table id="pubmethods" class="responsive methods"> 313 <tr><th colspan="2"><h3>Public methods</h3></th></tr> 314 315 316 317 318 <tr class="api apilevel-" > 319 320 321 <td><code> 322 abstract 323 324 325 326 327 View</code> 328 </td> 329 330 <td width="100%"> 331 <code> 332 <a href="/reference/android/support/test/espresso/ViewFinder.html#getView()">getView</a>() 333 </code> 334 335 <p>Immediately locates a single view within the provided view hierarchy. 336 337 338 </p> 339 340 </td> 341 </tr> 342 343 344 345 </table> 346 347 348 349 350 351 352 353 354 <!-- XML Attributes --> 355 356 357 <!-- Enum Values --> 358 359 360 <!-- Constants --> 361 362 363 <!-- Fields --> 364 365 366 <!-- Public ctors --> 367 368 369 370 <!-- ========= CONSTRUCTOR DETAIL ======== --> 371 <!-- Protected ctors --> 372 373 374 375 <!-- ========= METHOD DETAIL ======== --> 376 <!-- Public methdos --> 377 378 <h2 class="api-section">Public methods</h2> 379 380 381 382 <A NAME="getView()"></A> 383 384 <div class="api apilevel-"> 385 <h3 class="api-name">getView</h3> 386 <div class="api-level"> 387 <div></div> 388 389 390 391 </div> 392 <pre class="api-signature no-pretty-print"> 393 View getView ()</pre> 394 395 396 397 398 <p>Immediately locates a single view within the provided view hierarchy. 399 400 If multiple views match, or if no views match the appropriate exception is thrown.</p> 401 <table class="responsive"> 402 <tr><th colspan=2>Returns</th></tr> 403 <tr> 404 <td><code>View</code></td> 405 <td width="100%">A singular view which matches the matcher we were constructed with.</td> 406 </tr> 407 </table> 408 <table class="responsive"> 409 <tr><th colspan=2>Throws</th></tr> 410 <tr> 411 <td><code><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></code></td> 412 <td width="100%">when multiple views match</td> 413 </tr> 414 <tr> 415 <td><code><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></code></td> 416 <td width="100%">when no views match. 417 </td> 418 </tr> 419 </table> 420 421 422 </div> 423 424 425 426 427 428 <!-- ========= METHOD DETAIL ======== --> 429 430 431 432 <!-- ========= END OF CLASS DATA ========= --> 433 434 </div><!-- end jd-content --> 435 436 437 438 <div class="data-reference-resources-wrapper"> 439 440 <ul data-reference-resources> 441 442 443 <li><h2>Interfaces</h2> 444 <ul> 445 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/BaseLayerComponent.html">BaseLayerComponent</a></li> 446 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/EspressoException.html">EspressoException</a></li> 447 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/FailureHandler.html">FailureHandler</a></li> 448 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></li> 449 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a></li> 450 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/UiController.html">UiController</a></li> 451 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewAction.html">ViewAction</a></li> 452 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></li> 453 <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/ViewFinder.html">ViewFinder</a></li> 454 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewInteractionComponent.html">ViewInteractionComponent</a></li> 455 </ul> 456 </li> 457 458 <li><h2>Classes</h2> 459 <ul> 460 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.Builder.html">AmbiguousViewMatcherException.Builder</a></li> 461 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/DataInteraction.html">DataInteraction</a></li> 462 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Espresso.html">Espresso</a></li> 463 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/GraphHolder.html">GraphHolder</a></li> 464 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingPolicies.html">IdlingPolicies</a></li> 465 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingPolicy.html">IdlingPolicy</a></li> 466 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingViewException.Builder.html">NoMatchingViewException.Builder</a></li> 467 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/PerformException.Builder.html">PerformException.Builder</a></li> 468 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Root.html">Root</a></li> 469 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Root.Builder.html">Root.Builder</a></li> 470 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewInteraction.html">ViewInteraction</a></li> 471 </ul> 472 </li> 473 474 475 <li><h2>Exceptions</h2> 476 <ul> 477 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></li> 478 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a></li> 479 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResourceTimeoutException.html">IdlingResourceTimeoutException</a></li> 480 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/InjectEventSecurityException.html">InjectEventSecurityException</a></li> 481 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoActivityResumedException.html">NoActivityResumedException</a></li> 482 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingRootException.html">NoMatchingRootException</a></li> 483 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></li> 484 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/PerformException.html">PerformException</a></li> 485 </ul> 486 </li> 487 488 </ul> 489 490 </div> 491 492 493 494 </body> 495 </html> 496