mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
chore(docs): setting up dgeni and circle CI
This commit is contained in:
+17
-1
@@ -2,13 +2,29 @@ import {Plugin, RequiresPlugin} from './plugin';
|
||||
|
||||
declare var window;
|
||||
|
||||
|
||||
/**
|
||||
* Access information about the underlying device and platform.
|
||||
*
|
||||
* @usage
|
||||
* ```js
|
||||
* let info = Device.getDevice();
|
||||
* // Device sits below
|
||||
* ```
|
||||
*/
|
||||
|
||||
@Plugin({
|
||||
name: 'Device',
|
||||
plugin: 'cordova-plugin-device',
|
||||
pluginRef: 'device'
|
||||
})
|
||||
export class Device {
|
||||
|
||||
|
||||
/**
|
||||
* Returns the whole device object.
|
||||
* @see https://github.com/apache/cordova-plugin-device
|
||||
* @returns {Object} The device object.
|
||||
*/
|
||||
@RequiresPlugin
|
||||
static getDevice() {
|
||||
return window.device;
|
||||
|
||||
Reference in New Issue
Block a user