ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Camera functions
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
WLanguage procedure called by CameraPhoto
WLanguage procedure ("callback") called when the photo is saved via CameraPhoto.
Example
CameraPhoto(CAM_MyCamera, CameraPhoto_Callback)
 
INTERNAL PROCEDURE CameraPhoto_Callback(bSuccess is boolean, PhotoPath is string)
IF bSuccess = True THEN
IMG_PHOTO = PhotoPath
STC_PHOTO_PATH = PhotoPath
MyWindow.Plane = 3
ELSE
ToastDisplay("Cannot take photo." + CR + ErrorInfo())
END
END
Syntax
CameraPhoto_Callback(<Success> , <Photo path>)
<Success>: Boolean
  • True if the photo has been saved,
  • False otherwise. In this case, ErrorInfo returns the details of the error.
<Photo path>: Character string
Path of the photo that has just been saved.
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help