Skip to main content

Scan Tips

The SDK provides an optional toolbar item within the scanning screen, that when clicked, will open some tips on how to get the best scan result. By default it is activated for photo payment and disabled for document scan and shows some default items. You can customize it according to your needs or disable it completely.

scanTips

Disable

To disable the scan tips, set the ScanTips property to null. For Document Scan, the scan tips are disabled by default.

var photoPaymenConfig = new PhotoPaymentConfiguration();
photoPaymenConfig.ScanTips = null;
var result = await UI.StartPhotoPayment(photoPaymenConfig);

Customize

If you want to provide your own items instead of the default items, you can do that by providing your own list of DocutainListItem. Each item consists of an Image, a Title and a Message.

using Docutain.SDK.MAUI;

var scanTipsDefaultItems = UI.ScanTipsDefaultItems();

var scanConfig = new DocumentScannerConfiguration
{
ScanTips = new ScanTips
{
Items = [
scanTipsDefaultItems[1],
scanTipsDefaultItems[3],
new DocutainListItem { Image= "my_icon", Title= "my scanTips 3", Message= "my scantips as page 3\npage 1 is default page 2\npage 2 is default page 4"}
]
}
};
var result = await UI.ScanDocument(scanConfig);

The following provides an overview of the currently available options to alter the ScanTips:

PropertyTypeDescription
ItemsDocutainListItem[]The items you want to show within the scan tips. If you don't provide any items, some default items will be displayed.
ToolbarItemDocutainButtonThe toolbar item that will be shown allowing the user to open the scan tips.
info

You can get the default items used by the SDK to use them for your own list.

var scanTipsDefaultItems = UI.ScanTipsDefaultItems();

The following sample alters the ToolbarItem icon.

var scanConfig = new DocumentScannerConfiguration();
scanConfig.ScanTips.ToolbarItem.Icon = "my_icon";
var result = await UI.ScanDocument(scanConfig);