mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
new wrap
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import {Plugin, RequiresPlugin} from './plugin';
|
||||
|
||||
declare var window;
|
||||
|
||||
@Plugin({
|
||||
name: 'Device',
|
||||
plugin: 'cordova-plugin-device',
|
||||
pluginRef: 'device'
|
||||
})
|
||||
export class Device {
|
||||
|
||||
@RequiresPlugin
|
||||
static getDevice() {
|
||||
return window.device;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user