app.GetSharedFiles()

Use it to get the files that your app receives from another external app e.g a file manager or through share/send option.
It returns an array of URLs of the files sent

Example

sharedfiles.js
function OnStart()
{
sharedfiles = app.GetSharedFile()
if(sharedfiles)
  {
var s =""
for(i=0;i<sharedfiles.length;i++)
         {
           s+= sharedfiles[i]+"\n"
         }
       alert(s)
   }
}