Take, save and share screenshots.
Methods
_saveScreenshot() → {Promise}
Saves taken screenshot to device's native gallery.
Returns:
Resolved when done.
- Type
- Promise
deleteScreenshot(screenshotPath, subFolder) → {Promise}
Deletes stored screenshot from sub-folder
Parameters:
Name | Type | Description |
---|---|---|
screenshotPath |
string | name of the social media service |
subFolder |
string | folder containing screenshot |
Returns:
Resolved when done.
- Type
- Promise
emailScreenshot() → {Promise}
Opens the native email client with taken screenshot in the attachment.
Returns:
Resolved when done.
- Type
- Promise
(async) saveScreenshot(subFolder) → {Promise}
Saves a taken screenshot to a sub-folder on the hard drive. Returns a path to the file.
Parameters:
Name | Type | Description |
---|---|---|
subFolder |
string | target sub-folder |
Returns:
Resolved when done.
- Type
- Promise
shareScreenshot(socialMediaService, screenshotPath) → {Promise}
Shares saved screenshot on chosen social media service. This call is not available on emscripten platform (web).
Parameters:
Name | Type | Description |
---|---|---|
socialMediaService |
string | name of the social media service |
screenshotPath |
string |
Returns:
Resolved when done.
- Type
- Promise
takeScreenshot() → {Promise}
Takes a screenshot. The screenshot isn't immediately saved.
Returns:
Resolved when done.
- Type
- Promise