DeviceStatus Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Inheritance Hierarchy

System..::.Object
Microsoft.Phone.Info..::.DeviceStatus

Namespace: Microsoft.Phone.Info
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public NotInheritable Class DeviceStatus
public static class DeviceStatus

The DeviceStatus type exposes the following members.

Properties

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.

Top

Events

Name Description
KeyboardDeployedChanged Occurs when the keyboard has been deployed or closed.
PowerSourceChanged Occurs when the power source of the device changes.

Top

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

Thread Safety

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

See Also

Reference

Microsoft.Phone.Info Namespace

Other Resources

Device status for Windows Phone 8