PhotoLibrary external object

Official Content
This documentation is valid for:

The Photo Library API enables you to interact with the photo gallery of the device.

As the HowTo: Using Camera external object in GeneXus for Smart Devices enables an app to interact with the photo camera of the device, this API allows the application to save or get an image or a video from the native photo gallery. This article focuses on what this API does and gives an example of how to use it in a Smart Device application.

PhotoLibraryexternalobject-Location_png PhotoLibrary external object - Structure

Properties

It does not have any.

Methods

Save method

The Save method enables the application to store an image on the device's native photo gallery application.

Return value  None
Parameters Image:Image
 

Save Video method

The SaveVideo method enables the application to store a video on the device's native photo gallery application. 

Return value  None
Parameters Video:Video
 

ChooseImage method

This method invokes the native photo gallery app and lets the user choose one video to be used in the application.
It returns a variable based on Video data type. 

Return value  Image
Parameters None
 

ChooseVideo method

This method invokes the native photo gallery app and lets the user choose one video to be used in the application.
It returns a variable based on Video data type

Return value  Video
Parameters None
 

ChooseImages method

This method invokes the native photo gallery app and lets the user choose several images to be used in the application. 
It returns a collection of items based on Image data type.

Return value  ImagesCollection
Parameters None
 

Events

It does not have any.

Structured Data Types

ImagesCollection

A collection of Image data type.

Scope

Platforms  Smart Devices (iOS, Android)

Availability

This external object is available as of GeneXus X Evolution 3.

See also



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