Difference between revisions of "Mediamanager:takeScreenshot"

From GiderosMobile
(first attempt at creating methods for media plugin)
 
 
(5 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/>
 
  
<!-- {{Media}} -->
+
=== Return values ===
 +
'''Returns''' (string) path to the screenshot<br/>
 +
 
 +
=== Example ===
 +
<syntaxhighlight lang="lua">
 +
require "media"
 +
 
 +
-- take screenshot (no permission needed)
 +
mediamanager:takeScreenshot()
 +
</syntaxhighlight>
 +
 
 +
{{Media}}

Latest revision as of 03:30, 21 December 2024