1 | /**
|
2 | * @name FilePath
|
3 | * @description
|
4 | *
|
5 | * This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library.
|
6 | *
|
7 | * @usage
|
8 | * ```
|
9 | * import {FilePath} from 'ionic-native';
|
10 | *
|
11 | * FilePath.resolveNativePath(path)
|
12 | * .then(filePath => console.log(filePath))
|
13 | * .catch(err => console.log(err));
|
14 | *
|
15 | * ```
|
16 | */
|
17 | export declare class FilePath {
|
18 | /**
|
19 | * Resolve native path for given content URL/path.
|
20 | * @param {String} path Content URL/path.
|
21 | * @returns {Promise<string>}
|
22 | */
|
23 | static resolveNativePath(path: string): Promise<string>;
|
24 | }
|