cordova-wtto00-filepath
TypeScript icon, indicating that this package has built-in type declarations

1.7.2 • Public • Published

cordova-wtto00-filepath

Installation

cordova plugin add cordova-wtto00-filepath

Supported Platforms

  • Android

Usage

Once installed the plugin defines the window.FilePath object. To resolve a file path:

window.FilePath.resolveNativePath("content://...", successCallback, errorCallback);

successCallback

Returns the file:// file path.

errorCallback

Returns the following object:

{ code: <integer>, message: <string> }

Possible error codes are:

  • -1 - describes an invalid action
  • 0 - file:// path could not be resolved
  • 1 - the native path links to a cloud file (e.g: from Google Drive app)

Package Sidebar

Install

npm i cordova-wtto00-filepath

Weekly Downloads

0

Version

1.7.2

License

MIT

Unpacked Size

19.9 kB

Total Files

7

Last publish

Collaborators

  • wtto00