Official Content

The Camera external object enables you to programmatically take photos and record videos using the device's camera.

Cameraexternalobject-Location_png image_201861214103_1_png

Properties

It does not have any.

Methods

TakePhoto method

Takes a photo using the device's camera.

Return value  Image
Parameters None
 

RecordVideo method

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.

Return value  Video
Parameters [ VideoQuality ] based on the CameraAPIQuality data type
 

Events

It does not have any

Samples

Event 'RecordVideo'
  Composite
    &Video = Camera.RecordVideo()
    UploadVideo(&Video)
  EndComposite
EndEvent
Event 'TakePhoto'
  Composite
    &Image = Camera.TakePhoto()
    SaveImage(&Image)
  EndComposite
EndEvent

Considerations

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.

image_2019422174530_1_png

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.

Scope

Generators: AppleAndroidAngular

Availability

TakePhoto and RecordVideo methods are available for Angular as of GeneXus 18 Upgrade 2

See also

HowTo: Use Camera external object in GeneXus

 

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant