captureDeviceScreenshot
Captures the device’s framebuffer as a PNG.
Import:
import { captureDeviceScreenshot } from 'obsidian-integration-testing';Signature:
function captureDeviceScreenshot(params: CaptureDeviceScreenshotParams): Promise<Uint8Array<ArrayBufferLike>>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | CaptureDeviceScreenshotParams | The device to photograph. |
Returns: Promise<Uint8Array<ArrayBufferLike>> — A Promise that resolves to the raw PNG bytes.
Links to this page: