ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Camera functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
WLanguage procedure called by CameraRunApp
WLanguage procedure ("callback") called when taking photos or recording videos via CameraRunApp.
Example
nTypeEnregistrement is int
// Laisse l'utilisateur décider du type de capture
IF Dialog("Souhaitez-vous enregistrer une image ou une vidéo ?", ["Une image", ...
	"Une vidéo"], 1, 2, dlgIconQuestion) = 1 THEN
	nTypeEnregistrement = viPictureCapture
ELSE
	nTypeEnregistrement = viVideoCapture
END
// Lance l'application
CameraRunApp(nTypeEnregistrement, CaméraLanceAppli_Callback)

INTERNAL PROCEDURE CaméraLanceAppli_Callback(sChemin is string)
	// Si le retour vaut chaîne vide (""), une erreur a eu lieu
	IF sChemin ~= "" THEN
		Error(ErrorInfo())
		RETURN
	END
	// Message de fin d'enregistrement
	Info("Le fichier a été enregistré ici : " + sChemin)
END
Syntax
CameraRunApp_Callback(<Path>)
<Path>: Character string
Image or video save path.
Business / UI classification: Neutral code
Component: wd300android.aar
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/23/2024

Send a report | Local help