Back

GetMediaFile

Hello World

Returns a path to an unambiguous media file be like “/storage/emulated/0/Pictures/appName/YYYYMMDD_hhmmSSsss[ext]”.

app.GetMediaFile( appName, ext ) → string: path to file or folder ( “/absolute/...” or “relative/...” )

The folder to that file will be created automatically.

See Also: CreateImage, CreateCameraView

Example - Get Media File

function OnStart()
{
    var path = app.GetMediaFile("Hello World", ".png");
    app.Alert( path );
}
    Copy     Copy All       Run      
string