UNPKG

470 BTypeScriptView Raw
1/**
2 * @name FileChooser
3 * @description
4 *
5 * Opens the file picker on Android for the user to select a file, returns a file URI.
6 *
7 * @usage
8 * ```
9 * import {FileChooser} from 'ionic-native';
10 *
11 * FileChooser.open()
12 * .then(uri => console.log(uri))
13 * .catch(e => console.log(e));
14 *
15 * ```
16 */
17export declare class FileChooser {
18 /**
19 * Open a file
20 * @returns {Promise<string>}
21 */
22 static open(): Promise<string>;
23}