Hardware

API Reference: Device.Hardware

Hardware is used to retrieve certain device hardware information.

JavaScript
JavaScript
const Page = require("sf-core/ui/page");
const extend = require("js-base/core/extend");
const Hardware = require('sf-core/device/hardware');
var Page1 = extend(Page)(
function(_super) {
_super(this, {
onShow: function(params) {
Application.statusBar.visible = false;
this.headerBar.visible = false;
}
});
console.log("Device.Hardware.IMEI: " + Hardware.android.IMEI);
console.log("Device.Hardware.UID: " + Hardware.UID);
console.log("Device.Hardware.brandName: " + Hardware.brandName);
console.log("Device.Hardware.brandModel: " + Hardware.brandModel);
console.log("Device.Hardware.vendorID: " + Hardware.android.vendorID);
}
);
module.exports = Page1;