mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +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 { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core';
|
||||
|
||||
/**
|
||||
* @name Uptime
|
||||
@ -15,7 +15,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
* ...
|
||||
*
|
||||
* this.uptime.getUptime()
|
||||
* .then((uptime: any) => console.log(uptime))
|
||||
* .then((uptime: string) => console.log(uptime))
|
||||
* .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',
|
||||
install: '',
|
||||
installVariables: [],
|
||||
platforms: ['Android']
|
||||
platforms: ['Android', 'iOS']
|
||||
})
|
||||
@Injectable()
|
||||
export class Uptime extends IonicNativePlugin {
|
||||
|
Loading…
Reference in New Issue
Block a user