UNPKG

884 BTypeScriptView Raw
1/**
2 * @name FileOpener
3 * @description
4 * This plugin will open a file on your device file system with its default application.
5 *
6 * @usage
7 * ```
8 * import {FileOpener} from 'ionic-native';
9 *
10 *
11 *
12 * ```
13 */
14export declare class FileOpener {
15 /**
16 * Open an file
17 * @param filePath {string} File Path
18 * @param fileMIMEType {string} File MIME Type
19 * @returns {Promise<any>}
20 */
21 static open(filePath: string, fileMIMEType: string): Promise<any>;
22 /**
23 * Uninstalls a package
24 * @param packageId {string} Package ID
25 * @returns {Promise<any>}
26 */
27 static uninstall(packageId: string): Promise<any>;
28 /**
29 * Check if an app is already installed
30 * @param packageId {string} Package ID
31 * @returns {Promise<any>}
32 */
33 static appIsInstalled(packageId: string): Promise<any>;
34}