a
    ýÞ{bl  ã                   @   s   d Z G dd„ dƒZdS )a”  
Battery
=======

The :class:`Battery` provides information about the battery of your device.

.. note::
        On Android the `BATTERY_STATS` permission is needed.

Simple Example
---------------

To get battery status::

    >>> from plyer import battery
    >>> battery.status
    {'percentage': 82.0, 'isCharging': False}

Supported Platforms
-------------------
Android, iOS, Windows, OS X, Linux

c                   @   s,   e Zd ZdZedd„ ƒZdd„ Zdd„ ZdS )	ÚBatteryz
    Battery info facade.
    c                 C   s   |   ¡ S )a;  
        Property that contains a dict with the following fields:
             * **isCharging** *(bool)*: Battery is charging
             * **percentage** *(float)*: Battery charge remaining

            .. warning::
                If any of the fields is not readable, it is set as
                None.
        )Ú	get_state©Úself© r   úe/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/plyer/facades/battery.pyÚstatus   s    zBattery.statusc                 C   s   |   ¡ S )zp
        Public method for filling battery.status via platform-specific
        API in plyer.platforms.
        )Ú
_get_stater   r   r   r   r   ,   s    zBattery.get_statec                 C   s
   t ƒ ‚d S )N)ÚNotImplementedErrorr   r   r   r   r   5   s    zBattery._get_stateN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   r   r   r   r      s
   
	r   N)r   r   r   r   r   r   Ú<module>   s   