Camera.setFlash

From GiderosMobile
Revision as of 15:07, 18 August 2021 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2021.8<br/> '''<translate>Class</translate>:''' camera<br/> === <tr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2021.8
Class: camera

Description

Set the flash mode to use, as defined below:

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

Parameters

mode (number) One of the flash mode constants

Return values

Returns (number) False if an error occured