1+
12<img class =" img-fluid " align =" center " src =" https://github.com/ExtrieveTechnologies/QuickCapture/blob/main/QuickCapture.png?raw=true " width =" 30% " alt =" img-verification " ><img align =" right " class =" img-fluid " padding =" 10px " src =" https://github.com/ExtrieveTechnologies/QuickCapture/blob/main/android.png?raw=true?raw=true " alt =" img-verification " >
23
34> ** End of support Notice** : QuickCapture SDK Android ** V1** deprecated by Dec. 2022.For any further updates and support, can use ** V2**
@@ -21,13 +22,13 @@ Or use Gradle:
2122
2223``` gradle
2324repositories {
24- google()
25+ google()
2526 mavenCentral()
2627 maven {url 'https://expack.extrieve.in/maven/'}
2728}
2829
2930dependencies {
30- implementation 'com.extrieve.quickcapture:QCv3:3.0.5'
31+ implementation 'com.extrieve.quickcapture:QCv3:3.0.5'
3132}
3233```
3334
@@ -137,45 +138,92 @@ Config.CaptureSupport : contains various configurations as follows:
137138 // JAVA
138139 Config.CaptureSupport.OutputPath = "pass output path sd string";
139140 ```
141+ ```kotlin
142+ // Kotlin
143+ Config!!.CaptureSupport!!.OutputPath = "pass output path sd string";
144+ ```
140145- **MaxPage** - To set the number of captures to do on each camera session. And this can also control whether the capture mode is single or multi i.e
141146 > if MaxPage <= 0 / not set: means unlimited.If MaxPage >= 1:
142147 > means limited.
143148 ```java
149+ // JAVA
144150 // MaxPage <= 0 : Unlimited Capture Mode
145151 // MaxPage = 1 : Limited Single Capture
146152 // MaxPage > 1 : Limited Multi Capture Mode
147153 Config.CaptureSupport.MaxPage = 0;
148154 ```
155+ ```java
156+ // Kotlin
157+ // MaxPage <= 0 : Unlimited Capture Mode
158+ // MaxPage = 1 : Limited Single Capture
159+ // MaxPage > 1 : Limited Multi Capture Mode
160+ Config!!.CaptureSupport!!.MaxPage = 0;
161+ ```
149162- **ColorMode** - To Set the capture color mode - supporting color and grayscale.
150163 ```java
164+ // JAVA
151165 Config.CaptureSupport.ColorMode = Config.CaptureSupport.ColorModes.RBG;
152166 // RBG (1) - Use capture flow in color mode.
153167 // GREY (2) - Use capture flow in grey scale mode.
154168 ```
169+ ```kotlin
170+ // Kotlin
171+ Config!!.CaptureSupport!!.ColorMode = Config!!.CaptureSupport!!.ColorModes!!.RBG;
172+ // RBG (1) - Use capture flow in color mode.
173+ // GREY (2) - Use capture flow in grey scale mode.
174+ ```
155175- **EnableFlash** - Enable Document capture specific flash control for SDK camera.
156176 ```java
177+ // JAVA
157178 Config.CaptureSupport.EnableFlash = true;
158179 ```
180+ ```kotlin
181+ // Kotlin
182+ Config!!.CaptureSupport!!.EnableFlash = true;
183+ ```
159184- **CaptureSound** - To Enable camera capture sound.
160185 ```java
186+ // JAVA
161187 Config.CaptureSupport.CaptureSound = true;
162188 ```
189+ ```kotlin
190+ // Kotlin
191+ Config!!.CaptureSupport!!.CaptureSound = true;
192+ ```
163193- **DeviceInfo** - Will share all general information about the device.
164194 ```java
195+ // JAVA
165196 Config.CaptureSupport.DeviceInfo;
166197 ```
198+ ```kotlin
199+ // Kotlin
200+ Config!!.CaptureSupport!!.DeviceInfo;
201+ ```
167202- **SDKInfo** - Contains all version related information on SDK.
168203 ```java
204+ // JAVA
169205 Config.CaptureSupport.SDKInfo;
170206 ```
207+ ```kotlin
208+ // Kotlin
209+ Config!!.CaptureSupport!!.SDKInfo;
210+ ```
171211
172212- **CameraToggle** - Toggle camera between front and back.
173213 ```java
214+ // JAVA
174215 Config.CaptureSupport.CameraToggle = CameraToggleType.ENABLE_BACK_DEFAULT;
175216 // DISABLED (0) -Disable camera toggle option.
176217 // ENABLE_BACK_DEFAULT (1) -Enable camera toggle option with Front camera by default.
177218 // ENABLE_FRONT_DEFAULT (2) -Enable camera toggle option with Back camera by default.
178219 ```
220+ ```kotlin
221+ // Kotlin
222+ Config!!.CaptureSupport!!.CameraToggle = CameraToggleType!!.ENABLE_BACK_DEFAULT;
223+ // DISABLED (0) -Disable camera toggle option.
224+ // ENABLE_BACK_DEFAULT (1) -Enable camera toggle option with Front camera by default.
225+ // ENABLE_FRONT_DEFAULT (2) -Enable camera toggle option with Back camera by default.
226+ ```
179227## ImgHelper
180228Following are the options/methods available from class **ImgHelper** :
181229```java
@@ -190,7 +238,7 @@ ImgHelper ImageHelper = new ImgHelper(this);
190238 ```java
191239 // JAVA
192240 ImageHelper.SetImageQuality(ImgHelper.ImageQuality.Photo_Quality.ordinal());
193- // OR
241+ // --------------------------
194242 ImageHelper.SetImageQuality(1);// 0,1,2 - Photo_Quality, Document_Quality, Compressed_Document
195243 ```
196244 ```kotlin
@@ -201,7 +249,7 @@ ImgHelper ImageHelper = new ImgHelper(this);
201249 ```java
202250 // JAVA
203251 ImageHelper.SetPageLayout(ImgHelper.LayoutType.A4.ordinal());
204- // OR
252+ // --------------------------
205253 ImageHelper.SetPageLayout(4);// A1-A7(1-7),PHOTO,CUSTOM,ID(8,9,10)
206254 ```
207255 ```kotlin
@@ -216,11 +264,11 @@ ImgHelper ImageHelper = new ImgHelper(this);
216264 ```java
217265 // JAVA
218266 ImageHelper.SetDPI(ImgHelper.DPI.DPI_200.ordinal());
219- // OR
267+ // --------------------------
220268 ImageHelper.SetDPI(200);// int dpi_val = 150, 200, 300, 500, 600;
221269 ```
222- ```kotlin
223- // Kotlin
270+ ```kotlin
271+ // Kotlin
224272 imageHelper!!.SetDPI(200)
225273 ```
226274 >*Available DPI* : DPI_150, DPI_200, DPI_300, DPI_500, DPI_600
@@ -239,9 +287,10 @@ ImgHelper ImageHelper = new ImgHelper(this);
239287 Boolean AspectRatio )throws ImgException.
240288 */
241289 ```
242- ```kotlin
243- // Kotlin
290+ ```kotlin
291+ // KOTLIN
244292 var thumb = ImageHelper!!.GetThumbnail(ImageBitmap, 600, 600, true);
293+
245294 ```
246295- ***CompressToJPEG*** - *This method will Compress the provided bitmap image and will save to given path..*
247296 ```java
@@ -327,5 +376,3 @@ boolean UnlockImagingLibrary(String licenseFileData)
327376
328377
329378[© 1996 - 2023 Extrieve Technologies](https:// www.extrieve.com/)
330-
331-
0 commit comments