Difference between revisions of "Mediamanager:takeScreenshot"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 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/>
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
--require plugin
 
 
require "media"
 
require "media"
  
 
-- take screenshot (no permission needed)
 
-- take screenshot (no permission needed)
 
mediamanager:takeScreenshot()
 
mediamanager:takeScreenshot()
</source>
+
</syntaxhighlight>
  
<!-- {{Media}} -->
+
{{Media}}

Latest revision as of 14:30, 13 July 2023