Upload Mode

To enable the document upload functionality it is necessary to instantiate an object of type UploadSettings(boolean enable) and set its parameters:

Parameter
Description
Default
Required

.setEnable(enable: Boolean)

Enables or disables this feature.

true

.setCompress(enable: Boolean)

Enables or disables file compression before uploading.

true

.setFileFormats(fileFormats: Array<FileFormat>)

Specifies the accepted file formats for upload.

.PDF, .JPG, .JPEG, .PNG, .HEIF

.setMaxFileSize(maxFileSize: Int)

Sets the maximum file size limit in KB.

10000 (10MB)

.setActivityLayout(activityLayout: Int)

Defines the background layout for document upload.

-

.setPopUpLayout(popUpLayout: Int)

Defines the layout for the document upload request popup.

-

Currently, the supported file formats are:

Type
Value

PNG

image/png

JPG

image/jpg

JPEG

image/jpeg

PDF

application/pdf

HEIF

image/heif

Last updated

Logo

2023 © Caf. - All rights reserved