Camera external object

Official Content
This documentation is valid for:

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

To take a photo using the device's camera.

Return value  Image
Parameters None
 

RecordVideo method

To record 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:CameraAPIQuality data type ]
 

Events

It does not have any

Example

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

Scope

Platforms  Smart Devices (iOS, Android)

Availability

This external object is available as of GeneXus X Evolution 2 Upgrade 7.

Considerations

Android apps will ask for a 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.

See also




 


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.