Captureframe

Space.captureFrame() method

Takes a screenshot of the current frame. Returns a promise that resolves to the data URL of the screenshot.

Signature:

captureFrame(opts?: {
        width?: number;
        height?: number;
    }): Promise<string>;

Parameters

Parameter

Type

Description

opts

{ width?: number; height?: number; }

(Optional) Options for the screenshot

**Returns:**

Promise<string>