a
    ýÞ{b°  ã                   @   s   G d d„ dƒZ dS )c                   @   sD   e Zd ZdZedd„ ƒZdd„ Zdd„ Zdd	„ Zd
d„ Z	dd„ Z
dS )Ú	Proximitya  Proximity facade.

    The proximity sensor is commonly used to determine distance whether
    phone is close to your head. Commonly is used when you have a call
    and you stick your phone with your head. Then screen of phone turns off.

    Use method `enable` to turn on proximity sensor and method `disable` for
    turn off.

    To check if some object (or your head) is near sensor check values from
    property `proximity`. It returns `True` when object is close.

    .. versionadded:: 1.2.5

    Supported Platforms::Android
    c                 C   s   |   ¡ S )z„Return True or False depending if there is an object or not.

        :return: True if there is an object. Otherwise False.
        )Ú_get_proximity©Úself© r   úg/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/plyer/facades/proximity.pyÚ	proximity   s    zProximity.proximityc                 K   s
   t ƒ ‚d S ©N©ÚNotImplementedError©r   Úkwargsr   r   r   Ú_enable   s    zProximity._enablec                 C   s   |   ¡  dS )z%Enable the proximity sensor.
        N)r   r   r   r   r   Úenable   s    zProximity.enablec                 K   s
   t ƒ ‚d S r   r	   r   r   r   r   Ú_disable#   s    zProximity._disablec                 C   s   |   ¡  dS )z&Disable the proximity sensor.
        N)r   r   r   r   r   Údisable&   s    zProximity.disablec                 C   s
   t ƒ ‚d S r   r	   r   r   r   r   r   +   s    zProximity._get_proximityN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   r   r   r   r   r   r   r      s   
r   N)r   r   r   r   r   Ú<module>   ó    