{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class ActivityResultMatchers
Hamcrest matchers for a ActivityResult.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static Matcher<Any!>! |
hasResultCode(resultCode: Int)Returns a matcher that verifies that the |
java-static Matcher<Any!>! |
hasResultData(intentMatcher: Matcher<Intent!>!)Returns a matcher that verifies that the resultData of a given |
java-static fun hasResultCode(resultCode: Int): Matcher<Any!>!
Returns a matcher that verifies that the resultCode of a given ActivityResult matches the given code
java-static fun hasResultData(intentMatcher: Matcher<Intent!>!): Matcher<Any!>!
Returns a matcher that verifies that the resultData of a given ActivityResult matches the given specification by the intentMatcher