Trip Interface Description 1.2.2 Help

Photo

A question of type photo allows you to ask the user to take a picture or select a image from the gallery.

If the Scan App is installed on the device, then the Scan App it will be opened to take a photo. Once the image is taken or selected, the Scan App will be closed, and the user will be returned to the Drivers App.

If the Scan App is not installed and the user has a license for the Scan App, then the Drivers App will use the default camera app to take a picture. If the user has a license for the Scan App an alert will be shown to the user to install the Scan App

{ "id": 0, "key": "photo", "label": "Foto", "description": "A description", "required": false, "answers": [ { "id": 0, "nextQuestionId": 79, "options": { "maxPictures": 4, "useFrontCamera": true } } ] }

Answer Options

This chapter describes the option possibilities for an answer.

Name

Type

Description

Required

Default

minPictures

int

The minimum number of required images.

Note: This option is only available if the question is required.

false

0: if the question is not required

1: if the question is required

maxPictures

int

The maximum number of required images.

false

0


unlimited

isDocument

bool

If this is set to true, the ScanApp will try to cut out the document from the image.

Note: This option is only available if the ScanApp is installed on the device.

false

false

allowPickFromGallery

bool

Used to determine if the button to open the gallery is visible or not.

false

false

useFrontCamera

bool

Whether to use the front camera by default.

false

false

predefinedImageEffect

string

The predefined image effect to use.

Note: This option is only available if the ScanApp is installed on the device.

The following values are available:

  • original

  • without_shadow

  • greyed

  • monochrome

  • enhanced_colors

false

original

Examples

Photo example

A example image for question photo
{ "id": 0, "key": "photo", "label": "Foto", "description": "A description", "required": false, "answers": [ { "id": 0, "nextQuestionId": 79, "options": { "maxPictures": 4, "useFrontCamera": true } } ] }
Last modified: 04 June 2025