overwolf.media.takeScreenshot
Overwolf APIs / overwolf / overwolf / media / takeScreenshot
Call Signature
function takeScreenshot(callback: CallbackFunction<FileResult>): void;
Takes a screenshot and calls the callback with the success status and the screenshot URL. The screenshot is saved to the screenshots folder.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | CallbackFunction<FileResult> | A function called after the screenshot was taken. |
Returns
void
Call Signature
function takeScreenshot(
targetFolder: string,
callback: CallbackFunction<FileResult>,
): void;
Takes a screenshot and calls the callback with the success status and the screenshot URL. The screenshot is saved to the screenshots folder.
Parameters
| Parameter | Type | Description |
|---|---|---|
targetFolder | string | Target screen shot folder path. |
callback | CallbackFunction<FileResult> | A function called after the screenshot was taken. |
Returns
void