Extended Device Information
Retrieves additional device information from the Device Hardware
- memory
- cpumhz
- totalstorage
- freestorage
Repo: https://github.com/danielehrhardt/cordova-plugin-extended-device-information
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-extended-device-information $ npm install --save @ionic-native/extended-device-information@4
- Add this plugin to your app's module
Supported platforms
- Android
Usage
import { ExtendedDeviceInformation } from '@ionic-native/extended-device-information';
constructor(private extendedDeviceInformation: ExtendedDeviceInformation) { }
...
console.log('The Memory is: ' + this.extendedDeviceInformation.memory);
Instance Members
memory
Get the device’s memory size
cpumhz
Get the device’s CPU mhz
totalstorage
Get the total storage
freestorage
Get the total storage