Cordova CPU info plugin
Reads the CPU and some other hardware parameters of Android/iOS device
Original author
Functionality of this plugin was created by Zhang Leo. This is NPM implementation of his
GitHub project with few additions
Install
cordova plugin add cordova-plugin-cpu-info
Usage
Plugin creates
cordova.plugins.CPUInfo object in global space. You can get the target info by call its methods
By Promise:
cordova.plugins.CPUInfo.getMacAddress().then(function (address) {
$('.address').text(address);
});
Or with callback function:
cordova.plugins.CPUInfo.getMacAddress(function (address) {
alert(address);
});
List of CPUInfo's methods
$3
Returns the mac address of the mobile
$3
Returns the name of cpu
$3
Returns the current frequency of cpu
$3
Returns the min frequency of cpu
$3
Returns the max frequency of cpu
$3
Returns the number of cpu cores
$3
Returns the total size of ram
$3
Returns the available size of ram
$3
Returns the total size of sd
$3
Returns the available size of sd
$3
Returns total size of rom
$3
Returns available size of rom
$3
Returns the start time of the mobile