docs(file-opener): typo
This commit is contained in:
parent
d598bf3416
commit
06094c2b53
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name File Opener
|
* @name File Opener
|
||||||
@ -16,7 +16,7 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
*
|
*
|
||||||
* this.fileOpener.open('path/to/file.pdf', 'application/pdf')
|
* this.fileOpener.open('path/to/file.pdf', 'application/pdf')
|
||||||
* .then(() => console.log('File is opened'))
|
* .then(() => console.log('File is opened'))
|
||||||
* .catch(e => console.log('Error openening file', e));
|
* .catch(e => console.log('Error opening file', e));
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@ -29,11 +29,10 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class FileOpener extends IonicNativePlugin {
|
export class FileOpener extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open an file
|
* Open an file
|
||||||
* @param filePath {string} File Path
|
* @param {string} filePath File Path
|
||||||
* @param fileMIMEType {string} File MIME Type
|
* @param {string} fileMIMEType File MIME Type
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
@ -41,11 +40,13 @@ export class FileOpener extends IonicNativePlugin {
|
|||||||
successName: 'success',
|
successName: 'success',
|
||||||
errorName: 'error'
|
errorName: 'error'
|
||||||
})
|
})
|
||||||
open(filePath: string, fileMIMEType: string): Promise<any> { return; }
|
open(filePath: string, fileMIMEType: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uninstalls a package
|
* Uninstalls a package
|
||||||
* @param packageId {string} Package ID
|
* @param {string} packageId Package ID
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
@ -53,11 +54,13 @@ export class FileOpener extends IonicNativePlugin {
|
|||||||
successName: 'success',
|
successName: 'success',
|
||||||
errorName: 'error'
|
errorName: 'error'
|
||||||
})
|
})
|
||||||
uninstall(packageId: string): Promise<any> { return; }
|
uninstall(packageId: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if an app is already installed
|
* Check if an app is already installed
|
||||||
* @param packageId {string} Package ID
|
* @param {string} packageId Package ID
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
@ -65,6 +68,7 @@ export class FileOpener extends IonicNativePlugin {
|
|||||||
successName: 'success',
|
successName: 'success',
|
||||||
errorName: 'error'
|
errorName: 'error'
|
||||||
})
|
})
|
||||||
appIsInstalled(packageId: string): Promise<any> { return; }
|
appIsInstalled(packageId: string): Promise<any> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user