mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
fix(extended-device-information): Fixed Memory Display Bug (#2641)
* Fixed Memory Display Bug with ExtendedDeviceInformation Plugin * Update index.ts * Update index.ts
This commit is contained in:
parent
229b62c10b
commit
2ac52822b8
@ -4,7 +4,11 @@ import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
/**
|
/**
|
||||||
* @name Extended Device Information
|
* @name Extended Device Information
|
||||||
* @description
|
* @description
|
||||||
* Retrieves additional device information that is not provided by other plugins
|
* Retrieves additional device information from the Device Hardware
|
||||||
|
* - memory
|
||||||
|
* - cpumhz
|
||||||
|
* - totalstorage
|
||||||
|
* - freestorage
|
||||||
*
|
*
|
||||||
* @usage
|
* @usage
|
||||||
* ```typescript
|
* ```typescript
|
||||||
@ -22,23 +26,23 @@ import { CordovaProperty, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
pluginName: 'ExtendedDeviceInformation',
|
pluginName: 'ExtendedDeviceInformation',
|
||||||
plugin: 'cordova-plugin-extended-device-information',
|
plugin: 'cordova-plugin-extended-device-information',
|
||||||
pluginRef: 'extended-device-information',
|
pluginRef: 'extended-device-information',
|
||||||
repo: 'https://github.com/danielehrhardt/cordova-plugin-extended-device-information',
|
repo:
|
||||||
|
'https://github.com/danielehrhardt/cordova-plugin-extended-device-information',
|
||||||
platforms: ['Android']
|
platforms: ['Android']
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class ExtendedDeviceInformation extends IonicNativePlugin {
|
export class ExtendedDeviceInformation extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the device's memory size
|
* Get the device's memory size
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty
|
||||||
memory: number;
|
memory: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the device's CPU mhz
|
* Get the device's CPU mhz
|
||||||
*/
|
*/
|
||||||
@CordovaProperty
|
@CordovaProperty
|
||||||
cpumhz: string;
|
cpumhz: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the total storage
|
* Get the total storage
|
||||||
@ -46,4 +50,9 @@ export class ExtendedDeviceInformation extends IonicNativePlugin {
|
|||||||
@CordovaProperty
|
@CordovaProperty
|
||||||
totalstorage: string;
|
totalstorage: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the total storage
|
||||||
|
*/
|
||||||
|
@CordovaProperty
|
||||||
|
freestorage: number;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user