The Camera external object enables you to programmatically take photos and record videos using the device's camera.
It does not have any.
Takes a photo using the device's camera.
Return value |
Image |
Parameters |
None
|
Records a video using the device's camera. You can indicate (optionally) the quality that the video will be recorded with, affecting the file size and transfer time over the network. If this parameter is not sent, the value used is the medium.
It does not have any
Event 'RecordVideo'
Composite
&Video = Camera.RecordVideo()
UploadVideo(&Video)
EndComposite
EndEvent
Event 'TakePhoto'
Composite
&Image = Camera.TakePhoto()
SaveImage(&Image)
EndComposite
EndEvent
Android apps will ask for permission when they need it. For example, instead of giving an app access to your camera when you install it, you’ll be prompted the first time the app wants to access your camera.
You can change the permissions that apps can access in the main Settings app on your device at any time. Keep in mind turning off permissions may cause apps on your device to lose functionality.
Check for more information here.
Generators: Apple,
Android,
Angular
TakePhoto and RecordVideo methods are available for Angular as of GeneXus 18 Upgrade 2
HowTo: Use Camera external object in GeneXus