Skip to content

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:

ParameterTypeDescription
paramsCaptureDeviceScreenshotParamsThe device to photograph.

Returns: Promise<Uint8Array<ArrayBufferLike>> — A Promise that resolves to the raw PNG bytes.


Links to this page: