mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
docs(uptime): add iOS support
docs(uptime): add iOS support
This commit is contained in:
commit
f7b5e2f15f
@ -15,8 +15,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* this.uptime.getUptime()
|
* this.uptime.getUptime()
|
||||||
* .then((uptime: any) => console.log(uptime))
|
* .then(uptime => console.log(uptime))
|
||||||
* .catch((error: any) => console.log(error));
|
* .catch(error => console.log(error));
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@ -25,9 +25,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|||||||
plugin: 'cordova-plugin-uptime',
|
plugin: 'cordova-plugin-uptime',
|
||||||
pluginRef: 'Uptime',
|
pluginRef: 'Uptime',
|
||||||
repo: 'https://github.com/s1lviu/cordova-plugin-uptime',
|
repo: 'https://github.com/s1lviu/cordova-plugin-uptime',
|
||||||
install: '',
|
platforms: ['Android', 'iOS']
|
||||||
installVariables: [],
|
|
||||||
platforms: ['Android']
|
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class Uptime extends IonicNativePlugin {
|
export class Uptime extends IonicNativePlugin {
|
||||||
|
Loading…
Reference in New Issue
Block a user