ScreenshotPolicy

data class ScreenshotPolicy(val enabled: Boolean = false, val maxLongestEdgePx: Int = DEFAULT_MAX_LONGEST_EDGE_PX, val maxBytes: Long = DEFAULT_MAX_BYTES)

Controls whether and how io.devconsole.DevConsole.captureScreenshot may capture the foreground window.

enabled defaults to false -- a deliberate product decision, not an oversight. A screenshot cannot be redacted (see RedactionApplicability.NOT_APPLICABLE in sdk:storage-api), so it is the single most sensitive artifact this SDK can produce; a host must opt in explicitly. maxLongestEdgePx bounds the downscaled image's longer edge; maxBytes bounds the encoded PNG, and a capture that would exceed it is rejected rather than stored.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = false, maxLongestEdgePx: Int = DEFAULT_MAX_LONGEST_EDGE_PX, maxBytes: Long = DEFAULT_MAX_BYTES)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard