AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Cámara
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 CameraRunApp
WLanguage procedure ("callback") called when taking photos or recording videos via CameraRunApp.
Example
nRecordingType is int
 
// Let the user choose the type of capture
FI Dialog("Do you want to take a photo or record a video?", ["A photo", ...
"A video"], 1, 2, dlgIconQuestion) = 1 THEN
nRecordingType = viPictureCapture
ELSE
nRecordingType = viVideoCapture
END
 
// Starts the application
CameraRunApp(nRecordingType, CameraRunApp_Callback)
 
INTERNAL PROCEDURE CameraRunApp_Callback(sPath is string)
 
// If the return is an empty string vide (""), an error occurred
IF sPath ~= "" THEN
Error(ErrorInfo())
RETURN
END
 
// Message for end of recording
Info("The file was saved here: " + sPath)
END
Syntax
CameraRunApp_Callback(<Path>)
<Path>: Character string
Image or video save path.
Business / UI classification: Neutral code
Component: wd290android.aar
Versión mínima requerida
  • Versión 22
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 19/06/2023

Señalar un error o enviar una sugerencia | Ayuda local