nativescript-handle-file
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

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
})

Package Sidebar

Install

npm i nativescript-handle-file

Weekly Downloads

1

Version

4.0.0

License

MIT

Unpacked Size

13.8 kB

Total Files

11

Last publish

Collaborators

  • rafear