Difference between revisions of "Mediamanager:takeScreenshot"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
<syntaxhighlight 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 18: Line 20:
 
-- 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