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

OngoingStubbing

class OngoingStubbing


Supports method chaining after @Intents#intending method call.

Summary

Public constructors

Public functions

Unit
respondWith(result: ActivityResult!)

Sets a response for the intent being stubbed.

Unit

Sets a response callable for the intent being stubbed.

Public constructors

OngoingStubbing

OngoingStubbing()

Public functions

respondWith

fun respondWith(result: ActivityResult!): Unit

Sets a response for the intent being stubbed.

respondWithFunction

fun respondWithFunction(result: ActivityResultFunction!): Unit

Sets a response callable for the intent being stubbed.