Salesforce

ClientImageCapture (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

ClientImageCapture

Captures an image from the camera or gallery in mobile apps.

Syntax:

ClientImageCapture (source, width, height, quality, allow crop)

Parameters:

source – Select whether to take the image from the camera or the gallery:

  • 0 = camera

  • 1 = gallery

width – The desired width for the image in pixels. A value of 0 will keep the original width.

height – The desired height for the image in pixels. A value of 0 will keep the original height.

quality – The desired compression level for the image. A value of 0 means maximum compression. A value of 100 means the best quality.

allow crop – Defines whether the end user can crop the image after it was taken. The valid values are True and False.

Returns:

The path to the image. If the user did not take an image, a blank string will be returned.

Platform specific:

  • This function is only supported for mobile devices. It is not supported for the Windows Desktop and for Browser Client programs.

  • The cropping option is not supported for Windows 10 Mobile devices.

Exceptions:

This function is only available in Rich Client tasks and in the Main Program.

See also:

The Rich Client Samples project (program RMO07)

Since version:

3.2a

Reference
Attachment 
Attachment