Camera.setFlash

From GiderosMobile
Revision as of 14:26, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2021.8
Class: camera

Description

Sets the flash mode to use. <syntaxhighlight lang="lua"> (boolean) = camera.setFlash(mode) </source>

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