Skip to main content

Getting started

Sample Project

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.

For the Android platform, you need to pre install two Nuget packages first, in order to be able to install the Docutain SDK Nuget package.

Install Xamarin.AndroidX.LifeCycle.LiveData with a version of at least

Xamarin AndroidX LifeCycle LiveData NuGet package

Install Xamarin.AndroidX.Core with a version of at least

Xamarin AndroidX Core NuGet package

Once you have installed these two packages, install the nuget package Docutain.SDK.Xamarin.Forms into all of your projects.

NuGet package

Android Manifest

Camera Permission

If you want to use the Document Scanner, declare the following permission in your AndroidManifest.xml

<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name=""/>

Runtime permission for camera is handled automatically by the Docutain SDK.

Memory settings

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 AndroidManifest.xml file.

<application android:largeHeap="true" ...>

iOS Manifest

Camera Permission

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.