Difference between revisions of "Mediamanager:takeScreenshot"
From GiderosMobile
(first attempt at creating methods for media plugin) |
|||
Line 12: | Line 12: | ||
=== <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
'''<translate>Returns</translate>''' (string) <translate>path to the screenshot</translate><br/> | '''<translate>Returns</translate>''' (string) <translate>path to the screenshot</translate><br/> | ||
+ | |||
+ | === Example === | ||
+ | <source lang="lua"> | ||
+ | --require plugin | ||
+ | require "media" | ||
+ | |||
+ | -- take screenshot (no permission needed) | ||
+ | mediamanager:takeScreenshot() | ||
+ | </source> | ||
<!-- {{Media}} --> | <!-- {{Media}} --> |
Revision as of 02:49, 11 February 2020
Available since: Gideros 2016.1
Class: Media
Description
Captures a screenshot of the app.
(string) = mediamanager:takeScreenshot()
Return values
Returns (string) path to the screenshot
Example
--require plugin
require "media"
-- take screenshot (no permission needed)
mediamanager:takeScreenshot()