Mediamanager:postPicture: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(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 ===
Adds picture from given path to gallery (or opens save file dialog on pc).
Adds picture from given path to gallery (or opens save file dialog on pc).
<source lang="lua">
<syntaxhighlight lang="lua">
mediamanager:postPicture(path)
mediamanager:postPicture(path)
</source>
</syntaxhighlight>


=== <translate>Parameters</translate> ===
=== Parameters ===
'''path''': (string) <translate>the path to save the file to</translate>
'''path''': (string) the path to save the file to<br/>


=== Example ===
=== Example ===
<source lang="lua">
<syntaxhighlight lang="lua">
--require plugin
--require plugin
require "media"
require "media"
Line 20: Line 19:
-- save picture to sdcard/pictures folder (*need write permission*)
-- save picture to sdcard/pictures folder (*need write permission*)
mediamanager:postPicture("gfx/ball.png")
mediamanager:postPicture("gfx/ball.png")
</source>
</syntaxhighlight>
 
=== See also ===
For mobile: '''[[Share:export]]'''


{{Media}}
{{Media}}

Latest revision as of 20:21, 20 February 2025