UNPKG

874 BTypeScriptView Raw
1import { IonicNativePlugin } from '@ionic-native/core';
2/**
3 * @name File Path
4 * @premier filesystem
5 * @description
6 *
7 * This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library.
8 *
9 * @usage
10 * ```typescript
11 * import { FilePath } from '@ionic-native/file-path/ngx';
12 *
13 * constructor(private filePath: FilePath) { }
14 *
15 * ...
16 *
17 * this.filePath.resolveNativePath(path)
18 * .then(filePath => console.log(filePath))
19 * .catch(err => console.log(err));
20 *
21 * ```
22 */
23export declare class FilePathOriginal extends IonicNativePlugin {
24 /**
25 * Resolve native path for given content URL/path.
26 * @param {string} path Content URL/path.
27 * @returns {Promise<string>}
28 */
29 resolveNativePath(path: string): Promise<string>;
30}
31
32export declare const FilePath: FilePathOriginal;
\No newline at end of file