nativescript-handle-file-cghislai
Receive a url, download and prompt a list of apps which can open the file.
npm i --save nativescript-handle-file-cghislai
- Version: 6.4.1-rc.1
- GitHub: https://github.com/rafear/nativescript-handle-file
- NPM: https://www.npmjs.com/package/nativescript-handle-file-cghislai
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
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
})