Returns a path list of files shared with the app.
app.GetSharedFiles() →
List: [
path ]
If the results were retreived they can't be read an other time, unless they will be shared again.
See Also: GetSharedText, SendFile, SendText
Example - Show Shared Files
function OnStart()
{
var files = app.GetSharedFiles();
if( files ) app.Alert( files.join( "\n" ) );
else app.ShowPopup( "No shared files received." );
}
from native import app
def OnStart():
files = app.GetSharedFiles()
if files:
app.Alert("\n".join(files))
else:
app.ShowPopup("No shared files received.")