mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
docs(debug): Improve example
docs(debug): Improve example
This commit is contained in:
commit
a456738d15
@ -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 Is Debug
|
* @name Is Debug
|
||||||
@ -16,8 +16,8 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* this.isDebug.getIsDebug()
|
* this.isDebug.getIsDebug()
|
||||||
* .then((isDebug: boolean) => console.log('Is debug:', isDebug))
|
* .then(isDebug => console.log('Is debug:', isDebug))
|
||||||
* .catch((error: any) => console.error(error));
|
* .catch(err => console.error(err));
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@ -30,7 +30,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class IsDebug extends IonicNativePlugin {
|
export class IsDebug extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if an app was installed via xcode / eclipse / the ionic CLI etc
|
* Determine if an app was installed via xcode / eclipse / the ionic CLI etc
|
||||||
* @returns {Promise<boolean>} Returns a promise that resolves with true if the app was installed via xcode / eclipse / the ionic CLI etc. It will resolve to false if the app was downloaded from the app / play store by the end user.
|
* @returns {Promise<boolean>} Returns a promise that resolves with true if the app was installed via xcode / eclipse / the ionic CLI etc. It will resolve to false if the app was downloaded from the app / play store by the end user.
|
||||||
@ -39,5 +38,4 @@ export class IsDebug extends IonicNativePlugin {
|
|||||||
getIsDebug(): Promise<boolean> {
|
getIsDebug(): Promise<boolean> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user