ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Torch (Property)
In french: Torche
The Torch property is used to determine and change how a Camera control uses the torch.
Remarks:
  • Android To turn on the torch, the Camera control must be active.
  • This property can only be used on Camera controls that are not in "Version-26-compatible mode".
Example
CAM_MyCamera.Torch = camTorchOn
Syntax

Determining the torch mode in a Camera control Hide the details

<Result> = <Camera control>.Torch
<Result>: Integer constant
Torch mode used by the camera:
camTorchAutoTorch turned on automatically according to the light conditions.
camTorchOffThe torch is always off.
camTorchOnThe torch is always on.

The torch is disabled by default.
<Camera control>: Control name
Name of the Camera control to be used.

Changing the torch mode in a Camera control Hide the details

<Camera control>.Torch = <New mode>
<Camera control>: Control name
Name of the Camera control to be used.
<New mode>: Integer constant
Torch mode used by the camera:
camTorchAutoTorch turned on automatically according to the light conditions.
camTorchOffThe torch is always off.
camTorchOnThe torch is always on.

The torch is disabled by default.
Related Examples:
WM Photos Cross-platform examples (WINDEV Mobile): WM Photos
[ + ] This Android/iOS example is used to take photos and to save them by specifying a title and keywords.
A search is also available.
The photos are stored in the application directory, therefore they are private (not visible by other applications).
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 03/04/2024

Send a report | Local help