captureScreenshot

Captures a screenshot of the current Activity's root view. Uses drawToBitmap from AndroidX Core KTX.