Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

FragmentScenario.FragmentAction

public static interface FragmentScenario.FragmentAction

androidx.fragment.app.testing.FragmentScenario.FragmentAction<F extends androidx.fragment.app.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 FragmentScenario is passed to perform(F) method.

You should never keep the Fragment reference as it will lead to unpredictable behaviour. It should only be accessed in perform(F) scope.

Summary

Public methods

abstract void perform(F fragment)

This method is invoked on the main thread with the reference to the Fragment.

Public methods

perform

public abstract void perform (F fragment)

This method is invoked on the main thread with the reference to the Fragment.

Parameters
fragment F: a Fragment instrumented by the FragmentScenario.