mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-22 02:34:01 +08:00
feat(uptime): add iOS support
This commit is contained in:
parent
548860b1ff
commit
e6f6158b43
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Uptime
|
* @name Uptime
|
||||||
@ -15,7 +15,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* this.uptime.getUptime()
|
* this.uptime.getUptime()
|
||||||
* .then((uptime: any) => console.log(uptime))
|
* .then((uptime: string) => console.log(uptime))
|
||||||
* .catch((error: any) => console.log(error));
|
* .catch((error: any) => console.log(error));
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
@ -27,7 +27,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|||||||
repo: 'https://github.com/s1lviu/cordova-plugin-uptime',
|
repo: 'https://github.com/s1lviu/cordova-plugin-uptime',
|
||||||
install: '',
|
install: '',
|
||||||
installVariables: [],
|
installVariables: [],
|
||||||
platforms: ['Android']
|
platforms: ['Android', 'iOS']
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class Uptime extends IonicNativePlugin {
|
export class Uptime extends IonicNativePlugin {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user