Difference between revisions of "Mediamanager:takeScreenshot"

From GiderosMobile
 
(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> ===
+
'''ANDROID SDK 29+ HAS SOME BREAKING CHANGES, THIS FUNCTION WILL NOT WORK AS EXPECTED :-('''
'''<translate>Returns</translate>''' (string) <translate>path to the screenshot</translate><br/>
+
 
 +
=== Return values ===
 +
'''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 03:30, 21 December 2024