Methods
Screenshot
captureScreenshot
Takes a screenshot of the viewer in PNG format.
Options for the screenshot.
Type | Required |
---|---|
Object | Yes |
Properties
Name | Type | Required | Description |
---|---|---|---|
height | Number | Yes | Height of the screenshot in pixels |
width | Number | Yes | Width of the screenshot in pixels |
Promise that resolves to the base64 encoded string of the PNG image.
Type |
---|
Promise => String |