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
The Camera property is used to identify and change the camera used (back or front).
Remarks:
  • If a video recording is in progress, it is not possible to change the camera.
  • This property can only be used on Camera controls that are not in "Version-26-compatible mode".
  • This property corresponds to the "Camera" option in the "General" tab of the Camera control description window.
Example
IF CAM_MyCamera.Camera = camBackCamera THEN
CAM_MyCamera.Camera = camFrontCamera
END
Syntax

Identifying the camera used by a Camera control Hide the details

<Result> = <Camera control>.Camera
<Result>: Integer constant
Camera used:
camBackCameraBack camera of the device.
camFrontCameraFront camera of the device.

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

Changing the camera used by a Camera control Hide the details

<Camera control>.Flash = <New camera>
<Camera control>: Control name
Name of the Camera control to be used.
<New camera>: Integer constant
Camera used:
camBackCameraBack camera of the device.
camFrontCameraFront camera of the device.

The back camera is used 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: 02/29/2024

Send a report | Local help