Indicates current system power status information. 
- Header
 #include <xtd/forms/power_status>
  
- Namespace
 - xtd::forms 
 
- Library
 - xtd.forms
 
 | 
|   | object ()=default | 
|   | Create a new instance of the ultimate base class object.  
  | 
|   | 
| virtual bool  | equals (const object &obj) const noexcept | 
|   | Determines whether the specified object is equal to the current object.  
  | 
|   | 
| virtual size_t  | get_hash_code () const noexcept | 
|   | Serves as a hash function for a particular type.  
  | 
|   | 
| virtual type_object  | get_type () const noexcept | 
|   | Gets the type of the current instance.  
  | 
|   | 
| template<typename object_t >  | 
| xtd::uptr< object_t >  | memberwise_clone () const | 
|   | Creates a shallow copy of the current object.  
  | 
|   | 
| virtual xtd::string  | to_string () const noexcept | 
|   | Returns a xtd::string that represents the current object.  
  | 
|   | 
| template<typename object_a_t , typename object_b_t >  | 
| static bool  | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
|   | Determines whether the specified object instances are considered equal.  
  | 
|   | 
| template<typename object_a_t , typename object_b_t >  | 
| static bool  | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept | 
|   | Determines whether the specified object instances are the same instance.  
  | 
|   | 
◆ battery_charge_status()
◆ battery_full_life_time()
  
  
      
        
          | int32 xtd::forms::power_status::battery_full_life_time  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
noexcept   | 
  
 
Gets the reported full charge lifetime of the primary battery power source in seconds. 
- Returns
 - The reported number of seconds of battery life available when the battery is fully charged, or -1 if the battery life is unknown. 
 
 
 
◆ battery_life_percent()
  
  
      
        
          | float xtd::forms::power_status::battery_life_percent  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
noexcept   | 
  
 
Gets the approximate amount of full battery charge remaining. 
- Returns
 - The approximate amount, from 0.0 to 1.0, of full battery charge remaining. 
 
 
 
◆ battery_life_remaining()
  
  
      
        
          | int32 xtd::forms::power_status::battery_life_remaining  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
noexcept   | 
  
 
Gets the approximate number of seconds of battery time remaining. 
- Returns
 - The approximate number of seconds of battery life remaining, or -1 if the approximate remaining battery life is unknown. 
 
 
 
◆ power_line_status()
The documentation for this class was generated from the following file: