If you prefer sample projects over documentation, check out our samples on Github:
Docutain SDK Dependencies
The Docutain Xamarin SDK supports cross platform apps via Xamarin.Forms as well as native apps via Xamarin.Android and Xamarin.iOS. The packages are distributed via nuget.
If you are developing your app cross platform via Xamarin.Forms, install the nuget package
Docutain.SDK.Xamarin.Forms into all of your projects.
If your Xamarin.Forms version is lower than 220.127.116.115, you will get below error when installing the nuget package. We recommend updating Xamarin.Forms to at least version 18.104.22.1685. If this is not possible for you, you can follow the suggestion in the error message and install Xamarin.AndroidX.LifeCycle.LiveData directly into your Android project.
If you are developing a single platform Android app via Xamarin.Android, install the nuget package
Docutain.SDK.Xamarin.Android into your Android project.
If your Android project already has a version of Xamarin.Google.Android.Material installed that is lower than 22.214.171.124, you will get below build error. If this is the case, you need to install Xamarin.Google.Android.Material with a version of at least 126.96.36.199 in your Android project.
If you are developing a single platform iOS app via Xamarin.iOS, install the nuget package
Docutain.SDK.Xamarin.iOS into your iOS project.
If you want to use the Document Scanner, declare the following permission in your
Runtime permission for camera is handled automatically by the Docutain SDK.
Your application will work with high-resolution images. To avoid OutOfMemoryError exceptions it is highly recommended to set
android:largeHeap="true" in the
<application> element of your
<application android:largeHeap="true" ...>
If you want to use the document scanner, you need to specify the reason for requesting access to the camera as part of the
NSCameraUsageDescription in the
Info.plist. If you don't the app will crash.