mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
BarcodeScanner
This commit is contained in:
Vendored
+14
@@ -5,9 +5,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var plugin_1 = require('./plugin');
|
||||
/**
|
||||
* Access information about the underlying device and platform.
|
||||
*
|
||||
* @usage
|
||||
* ```js
|
||||
* let info = Device.getDevice();
|
||||
* // Device sits below
|
||||
* ```
|
||||
*/
|
||||
var Device = (function () {
|
||||
function Device() {
|
||||
}
|
||||
/**
|
||||
* Returns the whole device object.
|
||||
* @see https://github.com/apache/cordova-plugin-device
|
||||
* @returns {Object} The device object.
|
||||
*/
|
||||
Device.getDevice = function () {
|
||||
return window.device;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user