setAndWaitForOrientationLandscape

fun setAndWaitForOrientationLandscape(setOrientationLandscape: () -> Unit)

Set the orientation to landscape and wait for the activity configuration change to complete. Do nothing, if the orientation is already in landscape.

Parameters

setOrientationLandscape

The function to set the orientation to landscape.