captureScreenOnIdle

Note that this does not capture the full device screen as it has access only to the test
Activity's window surface. The test Activity is the one that hosts the initial composition
created via setContent. If there are windows on top of the Activity's window these won't
be included. It will also not include any other Activities started afterwards.