ActivityScenarioRuleKt


public final class ActivityScenarioRuleKt


Summary

Public methods

static final @NonNull ActivityScenarioRule<@NonNull A>
<A extends Activity> activityScenarioRule(Intent intent, Bundle activityOptions)

Constructs an ActivityScenarioRule of a given class.

Public methods

activityScenarioRule

public static final @NonNull ActivityScenarioRule<@NonNull A> <A extends Activity> activityScenarioRule(Intent intent, Bundle activityOptions)

Constructs an ActivityScenarioRule of a given class.

Parameters
Intent intent

an intent to start activity or null to use the default one

Bundle activityOptions

an activity options bundle to be passed along with the intent to start activity

Returns
@NonNull ActivityScenarioRule<@NonNull A>

ActivityScenarioRule which you can use to access to ActivityScenario from your tests