TakeScreenshot(targetFolder, callback) Version added: 0.117Ī callback function which will be called with the status of the request and the screenshot URL. ParameterĪ function called after the screenshot was taken The screenshot is saved to the screenshots folder. Takes a screenshot and calls the callback with the success status and the screenshot URL. takeScreenshot(callback) Version added: 0.78 Sample appĭownload here a Sample app for using the In-Memory Screenshot API. You can use the retrieved URL later in order to serve the stated screenshot: for example, to upload it to remote server, you can use HTML canvas. Some methods in the dia API allows you to take in-memory screenshot.įor example, the takeScreenshot(callback) method returns in a callback argument a screenshot URL that looks like this: overwolf://media/screenshots/custom/E:/Desktop%20Capture-07-15-2018%-793.jpg Permissions required: Media Methods Reference Use this API to capture a screenshot or create a GIF of the currently running game.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |