Class ShadowPixelCopy


@Implements(value=android.view.PixelCopy.class, minSdk=26, looseSignatures=true) public class ShadowPixelCopy extends Object
Shadow for PixelCopy that uses View.draw to create screenshots. The real PixelCopy performs a full hardware capture of the screen at the given location, which is impossible in Robolectric.

If listenerThread is backed by a paused looper, make sure to call ShadowLooper.idle() to ensure the screenshot finishes.