//Extensions for Dagger Hilt/it.czerwinski.android.hilt.fragment.testing/HiltFragmentScenario/FragmentAction
FragmentAction
[androidJvm] fun fun interface FragmentAction<F : Fragment>
FragmentAction interface should be implemented by any class whose instances are intended to be executed by the main thread. A Fragment that is instrumented by the HiltFragmentScenario is passed to FragmentAction.perform method.
You should never keep the Fragment reference as it will lead to unpredictable behaviour. It should only be accessed in FragmentAction.perform scope.
Functions
Name | Summary |
---|---|
equals | [androidJvm] Content open operator fun equals(other: Any?): Boolean |
hashCode | [androidJvm] Content open fun hashCode(): Int |
perform | [androidJvm] Content @MainThread() abstract fun perform(fragment: F) More info This method is invoked on the main thread with the reference to the fragment. |
toString | [androidJvm] Content open fun toString(): String |