Mediamanager:postPicture: Difference between revisions
From GiderosMobile
first attempt at creating methods for media plugin |
No edit summary |
||
| Line 12: | Line 12: | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''path''': (string) <translate>the path to save the file to</translate> | '''path''': (string) <translate>the path to save the file to</translate> | ||
=== Example === | |||
<source lang="lua"> | |||
--require plugin | |||
require "media" | |||
-- save picture to sdcard/pictures folder (*need write permission*) | |||
mediamanager:postPicture("gfx/ball.png") | |||
</source> | |||
<!-- {{Media}} --> | <!-- {{Media}} --> | ||
Revision as of 01:51, 11 February 2020
Available since: Gideros 2016.1
Class: Media
Description
Adds picture from given path to gallery (or opens save file dialog on pc).
mediamanager:postPicture(path)
Parameters
path: (string) the path to save the file to
Example
--require plugin
require "media"
-- save picture to sdcard/pictures folder (*need write permission*)
mediamanager:postPicture("gfx/ball.png")