Capture

The diagnostics of one device at one moment (Device.capture): a Screenshot, the Hierarchy, the DeviceInfo and the DriverLog. A part is null when it could not be produced; failures says why, by part name.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The parts that were produced, by name: screenshot, hierarchy, device-info, driver-log, in that order.

Link copied to clipboard
Link copied to clipboard

Why each missing part is missing, keyed like artifacts.

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

Functions

Link copied to clipboard
fun saveTo(dir: Path, prefix: String = serial): List<Path>

Writes every produced part to dir as <prefix>.<name>.<extension> (for example emulator-5554.screenshot.png), creating dir, and returns the written paths.

Link copied to clipboard
open override fun toString(): String