a
    ýÞ{bÏ  ã                   @   s   d Z G dd„ dƒZdS )a  
Flash
=====

The :class:`Flash` provides access to public methods to use flash of your
device.

.. note::
    In android you need CAMERA, FLASHLIGHT permissions
    to access flash.

.. versionadded:: 1.2.5

This can be used to activate the flash of your camera on
Android and iOS.

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

To turn on flash::

    >>> from plyer import flash
    >>> flash.on()

To turn off flash::

    >>> flash.off()

To release flash::

    >>> flash.release()

Supported Platforms
-------------------
Android, iOS

c                   @   s@   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Z	dS )ÚFlashz
    Flash facade.
    c                 C   s   |   ¡  dS )z$
        Activate the flash
        N)Ú_on©Úself© r   úc/Users/vegardjervell/Documents/master/model/venv/lib/python3.9/site-packages/plyer/facades/flash.pyÚon.   s    zFlash.onc                 C   s   |   ¡  dS )z&
        Deactiavte the flash
        N)Ú_offr   r   r   r   Úoff4   s    z	Flash.offc                 C   s   |   ¡  dS )zÛ
        Release any access to the Flash / Camera.
        Call this when you're done using the Flash.
        This will release the Camera, and stop any process.

        Next call to `_on` will reactivate it.
        N)Ú_releaser   r   r   r   Úrelease:   s    zFlash.releasec                 C   s
   t ƒ ‚d S ©N©ÚNotImplementedErrorr   r   r   r   r   F   s    z	Flash._onc                 C   s
   t ƒ ‚d S r   r   r   r   r   r   r   I   s    z
Flash._offc                 C   s   d S r   r   r   r   r   r   r
   L   s    zFlash._releaseN)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r	   r   r   r   r
   r   r   r   r   r   )   s   r   N)r   r   r   r   r   r   Ú<module>   s   '