DeviceStatus Class
Windows Phone
March 22, 2012
Allows an application to obtain information about the device on which it is running.
Namespace:
Microsoft.Phone.Info
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
The DeviceStatus type exposes the following members.
| Name | Description | |
|---|---|---|
|
ApplicationCurrentMemoryUsage | Returns the memory usage of the current application in bytes. |
|
ApplicationMemoryUsageLimit | Returns the maximum amount of memory that your application process can allocate in bytes. |
|
ApplicationPeakMemoryUsage | Returns the peak memory usage of the current application in bytes. |
|
DeviceFirmwareVersion | Returns the firmware version running on the device. |
|
DeviceHardwareVersion | Returns the hardware version running on the device. |
|
DeviceManufacturer | Returns the device manufacturer name. |
|
DeviceName | Returns the device name. |
|
DeviceTotalMemory | Returns the physical RAM size of the device in bytes. |
|
IsKeyboardDeployed | Indicates whether the user has deployed the physical hardware keyboard of the device. |
|
IsKeyboardPresent | Indicates whether the device contains a physical hardware keyboard. |
|
PowerSource | Indicates whether the device is currently running on battery power or is plugged in to an external power supply. |
| Name | Description | |
|---|---|---|
|
KeyboardDeployedChanged | Occurs when the keyboard has been deployed or closed. |
|
PowerSourceChanged | Occurs when the power source of the device changes. |
For more information about the DeviceStatus API, see Device Status for Windows Phone.