Difference between revisions of "Mediamanager:takeScreenshot"

From GiderosMobile
m
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== 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>
 +
 
 +
'''ANDROID SDK 29+ HAS SOME BREAKING CHANGES, THIS FUNCTION WILL NOT WORK AS EXPECTED :-('''
  
 
=== Return values ===
 
=== Return values ===
Line 13: Line 15:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
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