Camera.setFlash

This page contains changes which are not marked for translation.


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