mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-14 04:05:23 +08:00
17 lines
257 B
TypeScript
17 lines
257 B
TypeScript
![]() |
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;
|
||
|
}
|
||
|
}
|