a
    ýÞ{bZ  ã                   @   s   d Z G dd„ dƒZdS )a°  
Accelerometer
============

The accelerometer is a motion sensor that detects the change (delta) in
movement relative to the current device orientation, in three dimensions
along the x, y, and z axis.

The :class:`Accelerometer` provides access to public methods to
use accelerometer of your device.

Simple Examples
---------------

To enable accelerometer::

    >>> from plyer import accelerometer
    >>> accelerometer.enable()

To disable acceletometer::

    >>> accelerometer.disable()

To get the acceleration::

    >>> accelerometer.acceleration
    (-10.048464775085449, 6.825869083404541, 7.7260890007019043)

Supported Plaforms
------------------
Android, iOS, OS X, Linux

c                   @   sL   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d„ ZdS )ÚAccelerometerz
    Accelerometer facade.
    c                 C   s   |   ¡ S )z·
        Property that returns values of the current acceleration
        sensors, as a (x, y, z) tuple. Returns (None, None, None)
        if no data is currently available.
        )Úget_acceleration©Úself© r   úk/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/plyer/facades/accelerometer.pyÚacceleration)   s    zAccelerometer.accelerationc                 C   s   |   ¡  dS )z„
        Activate the accelerometer sensor. Throws an error if the
        hardware is not available or not implemented on.
        N)Ú_enabler   r   r   r   Úenable2   s    zAccelerometer.enablec                 C   s   |   ¡  dS )z3
        Disable the accelerometer sensor.
        N)Ú_disabler   r   r   r   Údisable9   s    zAccelerometer.disablec                 C   s   |   ¡ S ©N)Ú_get_accelerationr   r   r   r   r   ?   s    zAccelerometer.get_accelerationc                 C   s
   t ƒ ‚d S r   ©ÚNotImplementedErrorr   r   r   r   r   D   s    zAccelerometer._enablec                 C   s
   t ƒ ‚d S r   r   r   r   r   r   r
   G   s    zAccelerometer._disablec                 C   s
   t ƒ ‚d S r   r   r   r   r   r   r   J   s    zAccelerometer._get_accelerationN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r	   r   r   r   r
   r   r   r   r   r   r   $   s   
r   N)r   r   r   r   r   r   Ú<module>   s   #