ScreenshotCapture
object ScreenshotCapture
Utility for capturing and processing screenshots of the current Activity.
NOTE: public (not internal) because :sdk umbrella calls captureScreenshot across the Gradle module boundary. NOT annotated @PublicApi — plan 31-04 excludes it from the BCV surface via ignoredPackages.
Functions
Link copied to clipboard
Captures a screenshot of the current Activity's root view. Uses drawToBitmap from AndroidX Core KTX.
Link copied to clipboard
Converts a bitmap to a Base64-encoded JPEG string. Returns a data URI suitable for the API submission.
Link copied to clipboard
Compresses a bitmap to a raw PNG byte array — suitable for com.mcpfeedback.sdk.repo.FeedbackRequest.screenshotPngBytes. The repository layer handles any base64 encoding required by the transport.