Skip to content
Receive a url, download and prompt a list of apps wich can open the file
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
scripts
.gitignore
.npmignore
LICENSE
README.md
handle-file.android.d.ts
handle-file.android.ts
handle-file.ios.d.ts
handle-file.ios.ts
index.d.ts
package-lock.json
package.json
references.d.ts
tsconfig.json

README.md

nativescript-handle-file

This module gives you a tool to download, choose folder to save and then open an app to open file.

Instalation

tns plugin add nativescript-handle-file

How to use

Import class and instance it.

import {HandleFile} from 'nativescript-handle-file';

let handleFile = new HandleFile();
handleFile.open({
    name : "name-of-file.extension",
    url: "path-to-file",
    directory: "directory to save", // only in android [downloads, pictures, movies, music]
    tittle: "title to choose apps" // only in android
}).then(result => {
    //return true if success
})
You can’t perform that action at this time.