ActivityLifecycleWatcher
class ActivityLifecycleWatcher(testedApplication: Application) : Application.ActivityLifecycleCallbacks
Content copied to clipboard
An Application.ActivityLifecycleCallbacks watcher for testedApplication. This class can be used to wait for the activity recreation after calling a function that triggers a configuration change.
Constructors
Functions
Link copied to clipboard
open override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setAndWaitForOrientationLandscape(setOrientationLandscape: () -> Unit)
Content copied to clipboard
Set the orientation to landscape and wait for the activity configuration change to complete. Do nothing, if the orientation is already in landscape.
Link copied to clipboard
Set the orientation to portrait and wait for the activity configuration change to complete. Do nothing, if the orientation is already in portrait.
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard