<Type Name="Battery" FullName="Microsoft.Maui.Essentials.Battery">
  <TypeSignature Language="C#" Value="public static class Battery" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract sealed beforefieldinit Battery extends System.Object" />
  <TypeSignature Language="DocId" Value="T:Microsoft.Maui.Essentials.Battery" />
  <AssemblyInfo>
    <AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
    <AssemblyVersion>1.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>System.Object</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    <summary>Methods and properties for battery and charging information of the device.</summary>
    <remarks>
      <para>Platform specific remarks:</para>
      <para>- Android: Battery_Stats permission must be set in manifest.</para>
      <para>- iOS: Simulator will not return battery information, must be run on device</para>
      <para>- UWP: None</para>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName="BatteryInfoChanged">
      <MemberSignature Language="C#" Value="public static event EventHandler&lt;Microsoft.Maui.Essentials.BatteryInfoChangedEventArgs&gt; BatteryInfoChanged;" />
      <MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1&lt;class Microsoft.Maui.Essentials.BatteryInfoChangedEventArgs&gt; BatteryInfoChanged" />
      <MemberSignature Language="DocId" Value="E:Microsoft.Maui.Essentials.Battery.BatteryInfoChanged" />
      <MemberType>Event</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
        <AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.EventHandler&lt;Microsoft.Maui.Essentials.BatteryInfoChangedEventArgs&gt;</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Event trigger when battery properties have changed.</summary>
        <remarks></remarks>
      </Docs>
    </Member>
    <Member MemberName="ChargeLevel">
      <MemberSignature Language="C#" Value="public static double ChargeLevel { get; }" />
      <MemberSignature Language="ILAsm" Value=".property float64 ChargeLevel" />
      <MemberSignature Language="DocId" Value="P:Microsoft.Maui.Essentials.Battery.ChargeLevel" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
        <AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Double</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Gets the current charge level of the device from 0.0 to 1.0.</summary>
        <value>
          <para>Level of charge. Returns -1 if no battery exists.</para>
        </value>
        <remarks></remarks>
      </Docs>
    </Member>
    <Member MemberName="EnergySaverStatus">
      <MemberSignature Language="C#" Value="public static Microsoft.Maui.Essentials.EnergySaverStatus EnergySaverStatus { get; }" />
      <MemberSignature Language="ILAsm" Value=".property valuetype Microsoft.Maui.Essentials.EnergySaverStatus EnergySaverStatus" />
      <MemberSignature Language="DocId" Value="P:Microsoft.Maui.Essentials.Battery.EnergySaverStatus" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Microsoft.Maui.Essentials.EnergySaverStatus</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Gets the current energy saver status of the device.</summary>
        <value>The current status of energy saver mode.</value>
        <remarks></remarks>
      </Docs>
    </Member>
    <Member MemberName="EnergySaverStatusChanged">
      <MemberSignature Language="C#" Value="public static event EventHandler&lt;Microsoft.Maui.Essentials.EnergySaverStatusChangedEventArgs&gt; EnergySaverStatusChanged;" />
      <MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1&lt;class Microsoft.Maui.Essentials.EnergySaverStatusChangedEventArgs&gt; EnergySaverStatusChanged" />
      <MemberSignature Language="DocId" Value="E:Microsoft.Maui.Essentials.Battery.EnergySaverStatusChanged" />
      <MemberType>Event</MemberType>
      <AssemblyInfo>
        <AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.EventHandler&lt;Microsoft.Maui.Essentials.EnergySaverStatusChangedEventArgs&gt;</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Event that is triggered when energy saver status changes.</summary>
        <remarks></remarks>
      </Docs>
    </Member>
    <Member MemberName="PowerSource">
      <MemberSignature Language="C#" Value="public static Microsoft.Maui.Essentials.BatteryPowerSource PowerSource { get; }" />
      <MemberSignature Language="ILAsm" Value=".property valuetype Microsoft.Maui.Essentials.BatteryPowerSource PowerSource" />
      <MemberSignature Language="DocId" Value="P:Microsoft.Maui.Essentials.Battery.PowerSource" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
        <AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Microsoft.Maui.Essentials.BatteryPowerSource</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Gets the current power source for the device.</summary>
        <value>
          <para>Power source, or uknown.</para>
        </value>
        <remarks></remarks>
      </Docs>
    </Member>
    <Member MemberName="State">
      <MemberSignature Language="C#" Value="public static Microsoft.Maui.Essentials.BatteryState State { get; }" />
      <MemberSignature Language="ILAsm" Value=".property valuetype Microsoft.Maui.Essentials.BatteryState State" />
      <MemberSignature Language="DocId" Value="P:Microsoft.Maui.Essentials.Battery.State" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
        <AssemblyName>Microsoft.Maui.Essentials</AssemblyName>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Microsoft.Maui.Essentials.BatteryState</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Gets the charging state of the device if it can be determined.</summary>
        <value>Battery state, or unknown.</value>
        <remarks></remarks>
      </Docs>
    </Member>
  </Members>
</Type>
