Skip to content

Background

  • You can decide whether to darken the background around the document detection frame.

Show/hide the background mask:

DocumentReader.setConfig({
    customization: {
        showBackgroundMask: true
    }
});
  • Change the intensity of the background mask:
DocumentReader.setConfig({
    customization: {
        backgroundMaskAlpha: 0.5
    }
});
DocumentReader.setConfig({
    customization: {
        borderBackgroundImage: "Base64String"
    }
});
  • Change the content mode of an image that is located within the camera frame:
DocumentReader.setConfig({
    customization: {
        borderBackgroundImageContentMode: Enum.UIViewContentMode.ScaleAspectFit
    }
});

Next Steps