PowerManager PowerManager PowerManager PowerManager Class

Provides information about whether the phone's battery is in power-saving mode.

Syntax

Declaration

public static class PowerManagerpublic static class PowerManagerPublic Static Class PowerManagerpublic static class PowerManager

Properties summary

Gets a value that indicates whether the phone's battery is in power-saving mode.

Gets a value indicating whether power saving mode is currently enabled on the phone, regardless of whether power saving mode is currently active.

Events summary

Occurs when the power-saving mode of the phone's battery is changed.

Properties

  • PowerSavingMode
    PowerSavingMode
    PowerSavingMode
    PowerSavingMode

    Gets a value that indicates whether the phone's battery is in power-saving mode.

    public static PowerSavingMode PowerSavingMode { get; }public static PowerSavingMode PowerSavingMode { get; }Public Static ReadOnly Property PowerSavingMode As PowerSavingModepublic static PowerSavingMode PowerSavingMode { get; }

    Property Value

  • PowerSavingModeEnabled
    PowerSavingModeEnabled
    PowerSavingModeEnabled
    PowerSavingModeEnabled

    Gets a value indicating whether power saving mode is currently enabled on the phone, regardless of whether power saving mode is currently active.

    public static bool PowerSavingModeEnabled { get; }public static bool PowerSavingModeEnabled { get; }Public Static ReadOnly Property PowerSavingModeEnabled As boolpublic static bool PowerSavingModeEnabled { get; }

    Property Value

    • bool
      bool
      bool
      bool

      A value indicating whether power saving mode is currently enabled on the phone, regardless of whether power saving mode is currently active.

Events

  • PowerSavingModeChanged
    PowerSavingModeChanged
    PowerSavingModeChanged
    PowerSavingModeChanged

    Occurs when the power-saving mode of the phone's battery is changed.

    public static event EventHandler PowerSavingModeChangedpublic static event EventHandler PowerSavingModeChangedPublic Static Event PowerSavingModeChangedpublic static event EventHandler PowerSavingModeChanged

Device family

Windows Mobile Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Phone.PhoneContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.Phone.System.Power.dll