mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Yea toast
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import {Plugin, Cordova} from './plugin';
|
||||
|
||||
declare var Promise;
|
||||
|
||||
declare var window;
|
||||
|
||||
@Plugin({
|
||||
@@ -12,7 +14,9 @@ export class Device {
|
||||
static getCurrentPosition(options:any){};
|
||||
|
||||
|
||||
// Do this with observables
|
||||
// @Cordova()
|
||||
// static watchPosition;
|
||||
@Cordova({
|
||||
observable: true,
|
||||
clearFunction: 'clearWatch()'
|
||||
})
|
||||
static watchPosition(options:any){};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user