@ionic-native/file-path
Version:
Ionic Native - Native plugins for ionic apps
32 lines (31 loc) • 874 B
TypeScript
import { IonicNativePlugin } from '@ionic-native/core';
/**
* @name File Path
* @premier filesystem
* @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
* ```typescript
* import { FilePath } from '@ionic-native/file-path/ngx';
*
* constructor(private filePath: FilePath) { }
*
* ...
*
* this.filePath.resolveNativePath(path)
* .then(filePath => console.log(filePath))
* .catch(err => console.log(err));
*
* ```
*/
export declare class FilePathOriginal extends IonicNativePlugin {
/**
* Resolve native path for given content URL/path.
* @param {string} path Content URL/path.
* @returns {Promise<string>}
*/
resolveNativePath(path: string): Promise<string>;
}
export declare const FilePath: FilePathOriginal;