{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

OngoingStubbing

public final class OngoingStubbing


Supports method chaining after @Intents#intending method call.

Summary

Public constructors

Public methods

void
respondWith(ActivityResult result)

Sets a response for the intent being stubbed.

void

Sets a response callable for the intent being stubbed.

Public constructors

OngoingStubbing

public final OngoingStubbing()

Public methods

respondWith

public void respondWith(ActivityResult result)

Sets a response for the intent being stubbed.

respondWithFunction

public void respondWithFunction(ActivityResultFunction result)

Sets a response callable for the intent being stubbed.