Take Screenshot by Media Projection
API reference for capturing screenshots via media projection in Luciq. Use this when hardware-accelerated views render as blank images.
If your application uses any hardware-accelerated views, chances are that the captured screenshots will be blank for these views. In these cases, you can use this API to enable screenshots via media projection. Please note that enabling this will request permission from the users to record the screen at the beginning of the session.
🚧 Requires API 21
In order to enable media projection, the minimum support Android SDK version is 21.
BugReporting.setScreenshotByMediaProjectionEnabled(true);BugReporting.setScreenshotByMediaProjectionEnabled(true)Last updated