-
Notifications
You must be signed in to change notification settings - Fork 24
MobileCRM.Services.DocumentService
rescocrm edited this page Sep 27, 2021
·
6 revisions
[v8.1] Represents a service for acquiring the documents.
| Property | Type | Description |
|---|---|---|
| maxImageSize | String | Gets or sets the maximum captured image size. If captured image size is greater, the image is resized to specified maximum size [640x480,1024x768,1600x1200,2048x1536,2592x1936 ]. |
| maxUploadImageSize | String | Gets or sets the maximum uploaded image size. If uploaded image size is greater then image is resized to specified maximum size [640x480,1024x768,1600x1200,2048x1536,2592x1936 ]. |
| recordQuality | String | Gets or sets the record quality for audio/video recordings [Low, Medium, High]. |
| allowChooseVideo | Boolean | Indicates whether the video files should be included into the image picker when selecting the photos. The default is true. |
| allowMultipleFiles | Boolean | Indicates whether to allow multiple files for DocumentActions SelectPhoto and SelectFile.[Not implemented on iOS.] |
| allowCancelHandler | Boolean | Indicates whether to allow handling of cancel event. Callback will pass the null argument in this case. |
| Method | Description |
|---|---|
| capturePhoto | Asks the user to capture a photo and calls the async callback with file info. |
| loadFrom | [13.3.4]Asks the user to choose a file and calls the async callback with file info. |
| loadFromMultiple | [13.3.4]Asks the user to choose a multiple files and calls the async callback with file info. |
| pasteFile | Takes the file from clipboard and calls the async callback with file info. |
| [v9.1] Prints the document defined by file path. | |
| recordAudio | Asks the user to record an audio note and calls the async callback with file info. |
| recordVideo | Asks the user to record an video and calls the async callback with file info. |
| resizeImage | [v11.1] Resize image defined by file path. |
| saveFileDialog | [v11.2] Ask to user to choose a location and saves the passed data as a file at that location. |
| selectFile | Asks the user to choose a file and calls the async callback with file info. |
| selectMultipleFiles | [v14.2.0] Asks the user to choose multiple files and calls the async callback with linked list of file infos (see FileInfo.nextInfo). |
| selectMultiplePhotos | [v11.2.3] Asks the user to choose multiple photos and calls the async callback with linked list of file infos (see FileInfo.nextInfo). |
| selectPhoto | Asks the user to choose a media (image, video, depending on the value of allowChooseVideo property) and calls the async callback with file info. |