Difference between revisions of "Mediamanager:takeScreenshot"

From GiderosMobile
(first attempt at creating methods for media plugin)
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.1<br/>
'''<translate>Available since</translate>:''' Gideros 2016.1<br/>
+
'''Class:''' [[Media]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Media|Media]]<br/>
 
  
=== <translate>Description</translate> ===
+
=== Description ===
 
Captures a screenshot of the app.
 
Captures a screenshot of the app.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(string) = mediamanager:takeScreenshot()
 
(string) = mediamanager:takeScreenshot()
</source>
+
</syntaxhighlight>
  
=== <translate>Return values</translate> ===
+
=== Return values ===
'''<translate>Returns</translate>''' (string) <translate>path to the screenshot</translate><br/>
+
'''Returns''' (string) path to the screenshot<br/>
  
<!-- {{Media}} -->
+
=== Example ===
 +
<syntaxhighlight lang="lua">
 +
require "media"
 +
 
 +
-- take screenshot (no permission needed)
 +
mediamanager:takeScreenshot()
 +
</syntaxhighlight>
 +
 
 +
{{Media}}

Latest revision as of 14:30, 13 July 2023