ionic-native
Version:
Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support
35 lines (34 loc) • 884 B
TypeScript
/**
* @name FileOpener
* @description
* This plugin will open a file on your device file system with its default application.
*
* @usage
* ```
* import {FileOpener} from 'ionic-native';
*
*
*
* ```
*/
export declare class FileOpener {
/**
* Open an file
* @param filePath {string} File Path
* @param fileMIMEType {string} File MIME Type
* @returns {Promise<any>}
*/
static open(filePath: string, fileMIMEType: string): Promise<any>;
/**
* Uninstalls a package
* @param packageId {string} Package ID
* @returns {Promise<any>}
*/
static uninstall(packageId: string): Promise<any>;
/**
* Check if an app is already installed
* @param packageId {string} Package ID
* @returns {Promise<any>}
*/
static appIsInstalled(packageId: string): Promise<any>;
}