Summary: Methods | Inherited Methods | [Expand All]

# ResettingStubber

`public interface ResettingStubber`
`implements IntentStubber`

android.support.test.espresso.intent.ResettingStubber

Known Indirect Subclasses ResettingStubberImpl
ResettingStubberImpl | Implementation of `ResettingStubber`

A sneaky singleton object used to respond to intents with fake responses. This interface is not meant for public consumption. Test authors should use `Intents` instead.

## Summary

### Public methods
`abstract void` | `initialize()` Marks this spy as initialized.
`abstract boolean` | `isInitialized()`
`abstract void` | `reset()` Clears state (initialization, expected responses).
`abstract void` | `setActivityResultForIntent(Matcher<Intent> matcher, Instrumentation.ActivityResult result)` Sets the result that will be returned to the intent sender (if the sender expects the result), next time an intent matched by the given matcher is launched.

### Inherited methods
From interface `android.support.test.runner.intent.IntentStubber`
`abstract Instrumentation.ActivityResult` | `getActivityResultForIntent(Intent intent)` Returns the first matching stubbed result for the given activity if stubbed result was set by test author.

## Public methods

### initialize

    void initialize ()

Marks this spy as initialized. Once initialized, ResettingStubber begins recording intents and provides intent stubbing.

### isInitialized

    boolean isInitialized ()

Returns
`boolean` | `true` if this spy is initialized

### reset

    void reset ()

Clears state (initialization, expected responses).

Must be called on main thread.

### setActivityResultForIntent

    void setActivityResultForIntent (Matcher<Intent> matcher,
                    Instrumentation.ActivityResult result)

Sets the result that will be returned to the intent sender (if the sender expects the result), next time an intent matched by the given matcher is launched.

Parameters
`matcher` | `Matcher`
`result` | `Instrumentation.ActivityResult`

- ## Interfaces

  - ResettingStubber
  - ResolvedIntent
  - VerifiableIntent
  - VerificationMode

- ## Classes

  - Checks
  - Intents
  - OngoingStubbing
  - ResettingStubberImpl
  - VerificationModes