createSecondaryOnDisplayContext

fun IviActivityTestCase.createSecondaryOnDisplayContext(displayIdProvider: () -> DisplayId): OnDisplayContext

Creates an OnDisplayContext for a secondary display. The display ID of the secondary display is provided by displayIdProvider.

The obtainSecondaryDisplayIds routine is helpful to get the list of all available secondary displays and dedicate the one ID to be provided by the displayIdProvider.

It is assumed that the activity has a R.id::ttivi_status_bar_clock view that can be used to click on to move the focus to the secondary display.