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
    },
}, function (m) { }, function (e) { console.log(e); });
  • Change the intensity of the background mask:
DocumentReader.setConfig({
    customization: {
        backgroundMaskAlpha: 0.5
    },
}, function (m) { }, function (e) { console.log(e); });
DocumentReader.setConfig({
    customization: {
        borderBackgroundImage: "Base64String"
    },
}, function (m) { }, function (e) { console.log(e); });
  • Change the content mode of an image that is located within the camera frame:
DocumentReader.setConfig({
    customization: {
        borderBackgroundImageContentMode: DocumentReader.Enum.UIViewContentMode.ScaleAspectFit
    },
}, function (m) { }, function (e) { console.log(e); });

Next Steps