2 out of 3 rated this helpful - Rate this topic

DeviceStatus Class

Windows Phone

March 22, 2012

Allows an application to obtain information about the device on which it is running.

System.Object
  Microsoft.Phone.Info.DeviceStatus

Namespace:  Microsoft.Phone.Info
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public static class DeviceStatus

The DeviceStatus type exposes the following members.

  Name Description
Public property Static member ApplicationCurrentMemoryUsage Returns the memory usage of the current application in bytes.
Public property Static member ApplicationMemoryUsageLimit Returns the maximum amount of memory that your application process can allocate in bytes.
Public property Static member ApplicationPeakMemoryUsage Returns the peak memory usage of the current application in bytes.
Public property Static member DeviceFirmwareVersion Returns the firmware version running on the device.
Public property Static member DeviceHardwareVersion Returns the hardware version running on the device.
Public property Static member DeviceManufacturer Returns the device manufacturer name.
Public property Static member DeviceName Returns the device name.
Public property Static member DeviceTotalMemory Returns the physical RAM size of the device in bytes.
Public property Static member IsKeyboardDeployed Indicates whether the user has deployed the physical hardware keyboard of the device.
Public property Static member IsKeyboardPresent Indicates whether the device contains a physical hardware keyboard.
Public property Static member PowerSource Indicates whether the device is currently running on battery power or is plugged in to an external power supply.
Top
  Name Description
Public event Static member KeyboardDeployedChanged Occurs when the keyboard has been deployed or closed.
Public event Static member PowerSourceChanged Occurs when the power source of the device changes.
Top

For more information about the DeviceStatus API, see Device Status for Windows Phone.

Windows Phone OS

Supported in: 7.1

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)