UNPKG

ionic-native

Version:

Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support

49 lines 1.82 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var plugin_1 = require('./plugin'); /** * @name FilePath * @description * * This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library. * * @usage * ``` * import {FilePath} from 'ionic-native'; * * FilePath.resolveNativePath(path) * .then(filePath => console.log(filePath)) * .catch(err => console.log(err)); * * ``` */ var FilePath = (function () { function FilePath() { } /** * Resolve native path for given content URL/path. * @param {String} path Content URL/path. * @returns {Promise<string>} */ FilePath.resolveNativePath = function (path) { return; }; __decorate([ plugin_1.Cordova() ], FilePath, "resolveNativePath", null); FilePath = __decorate([ plugin_1.Plugin({ pluginName: 'FilePath', plugin: 'cordova-plugin-filepath', pluginRef: 'window.FilePath', repo: 'https://github.com/hiddentao/cordova-plugin-filepath', platforms: ['Android'] }) ], FilePath); return FilePath; }()); exports.FilePath = FilePath; //# sourceMappingURL=filepath.js.map