HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v9.0. Click to read the latest docs for v13.0.0.

Take Screenshot by Media Projection

Native Android Only

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(boolean enabled)