Difference between revisions of "Camera.setFlash"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the flash mode to use.
 
Sets the flash mode to use.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(boolean) = camera.setFlash(mode)
 
(boolean) = camera.setFlash(mode)
</source>
+
</syntaxhighlight>
  
 
Possible ''mode'' values are:
 
Possible ''mode'' values are:

Latest revision as of 14:27, 13 July 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