Skip to main content

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

ParameterTypeDescription
callbackCallbackFunction<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

ParameterTypeDescription
targetFolderstringTarget screen shot folder path.
callbackCallbackFunction<FileResult>A function called after the screenshot was taken.

Returns

void