Difference between revisions of "Camera.setFlash"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2021.8<br/> '''<translate>Class</translate>:''' camera<br/> === <tr...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2021.8<br/>
'''<translate>Available since</translate>:''' Gideros 2021.8<br/>
+
'''Class:''' [[camera]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/camera|camera]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Set the flash mode to use, as defined below:
+
Sets the flash mode to use.
* 0: Automatic
 
* 1: Flash On
 
* 2: Flash Off
 
* 3: Torch mode
 
* 4: Red-eye cancel mode (Android only)
 
</translate>
 
 
<source lang="lua">
 
<source lang="lua">
 
(boolean) = camera.setFlash(mode)
 
(boolean) = camera.setFlash(mode)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''<translate>mode</translate>''' (number) <translate>One of the flash mode constants</translate><br/>
+
Possible ''mode'' values are:
=== <translate>Return values</translate> ===
+
* '''0''': Automatic
'''<translate>Returns</translate>''' (number) <translate>False if an error occured</translate><br/>
+
* '''1''': Flash On
 +
* '''2''': Flash Off
 +
* '''3''': Torch mode
 +
* '''4''': Red-eye cancel mode (Android only)
 +
 
 +
=== Parameters ===
 +
'''mode''' (number) one of the flash mode constants<br/>
 +
 
 +
=== Return values ===
 +
'''Returns''' (number) False if an error occured<br/>
  
 
{{Camera}}
 
{{Camera}}

Revision as of 06:16, 11 June 2023

Available since: Gideros 2021.8
Class: camera

Description

Sets the flash mode to use.

(boolean) = camera.setFlash(mode)

Possible mode values are:

  • 0: Automatic
  • 1: Flash On
  • 2: Flash Off
  • 3: Torch mode
  • 4: Red-eye cancel mode (Android only)

Parameters

mode (number) one of the flash mode constants

Return values

Returns (number) False if an error occured